I've got both the static and the dynamic versions of the boost libraries in /usr/lib. Now I'd like CMake to prefer the static versions during the linkage of my executable. What can I do?
Thank you
I've got both the static and the dynamic versions of the boost libraries in /usr/lib. Now I'd like CMake to prefer the static versions during the linkage of my executable. What can I do?
Thank you
In your CMakeLists.txt
file:
set(Boost_USE_STATIC_LIBS ON)
find_package(Boost REQUIRED ...)