Building on Linux with rapidjson

How do I get the build to include rapidjson?

I've managed to successfully build occt within a Ubuntu Docker container, but it doesn't include rapidjson.

rapidjson is installed via

apt-get install rapidjson-dev

and the files are available in /usr/include/rapidjson

I've tried setting the USE_RAPIDJSON environment variable


but when I look in CMakeCache.txt it has 


I've also tried running cmake as below but with the same results

USE_RAPIDJSON=ON cmake /app/occt

How do I enable rapidjson for the build?

Kirill Gavrilov's picture

Check CMake documentation for passing configuration arguments - they are not environment variables like in your samples.

cmake -G "Unix Makefiles" -D USE_RAPIDJSON:BOOL="ON" /home/occt.git
Chris Richards's picture