I am using boost::property_tree to read and write json files from a CMake C++ project. On machines I can install libjsoncpp and boost to the system, everything compiles, links, and works properly/as expected. However, I am now working on a machine I do not have root access to. Therefore I am compiling boost from source, and linking against it via CMake.
I am running into a problem where, it would seem, FindBoost.cmake is putting in a hard dependancy upon libjsoncpp.so
make[2]: *** No rule to make target
/usr/lib64/libjsoncpp.so', needed by
bin/myApp'. Stop.
I've tried building jsoncpp from source, and have tried adding the .a and .so to my cmake target_link_libraries command, but to no avail.
I'm not sure if this is related (or causing the issue somehow), but I am using
ADD_DEFINITIONS(-DBOOST_LOG_DYN_LINK)
as boost::log requires it for linking from module modules.
I absolutely cannot have lipjsoncpp.so installed in /usr/lib64. What should I do?