Boost logo

Boost :

Subject: Re: [boost] Problem with program_options on FreeBSD 8 (gcc 4.2)
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2010-08-13 06:40:56


elekktretterr_at_[hidden] 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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk