Re: [boost] Problem with program_options on FreeBSD 8 (gcc 4.2)

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()

elekktretterr@exemail.com.au wrote:
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()
Would you please keep off-topic discussion off boost-devel? - Volodya
participants (2)
-
elekktretterrï¼ exemail.com.au
-
Vladimir Prus