
13 Aug
2010
13 Aug
'10
9:35 a.m.
Petr,
Specify that you want to "find" the static boost libs in your cmakelists.txt, just before calling find_package( Boost )
set( Boost_USE_STATIC_LIBS On ) find_package( Boost REQUIRED COMPONENTS program_options )
Hi Andre, Thanks, but that is exactly my problem. I want dynamic linking, but it keeps getting linked statically. Ive got this: find_package( Boost 1.43.0 COMPONENTS program_options) set(Boost_USE_STATIC_LIBS OFF) set(Boost_USE_MULTITHREADED ON) if(Boost_FOUND) include_directories(${Boost_INCLUDE_DIRS}) add_executable(...) target_link_libraries(tbone ${Boost_LIBRARIES}) endif()