|
Boost Users : |
Subject: Re: [Boost-users] CMake and Boost
From: Koteswara Rao Ruvva (ruvva_at_[hidden])
Date: 2014-03-05 14:02:50
Great. That worked. Thank you.
________________________________
From: Bartek TaczaÅa <w0lanto_at_[hidden]>
To: boost-users_at_[hidden]
Cc: Koteswara Rao Ruvva <ruvva_at_[hidden]>
Sent: Wednesday, March 5, 2014 3:35 AM
Subject: Re: [Boost-users] CMake and Boost
On Tuesday 04 of March 2014 14:54:46 Koteswara Rao Ruvva wrote:
> Hello All,
>
> I built boost libraries with the option build-type=complete and created libraries for various options, like gcc54-mt, gcc45-mt-d, gcc45-mt-s, gcc-54mt-sd etc. I have similar ones for intel toolchain too.
> Now, how do I force CMake to link to the correct library file out of many versions? Do I have to specify the full library name? Or can I specify the build type, like debug, multi-threading etc and leave the CMake to choose the right file to link? Is there such an option? I'm building on Linux under gcc and intel compilers and keeping both gcc and intel library files in one folder.
>
> Thank you all for being there to help the community.
>
> --Kotesh
Hi,
there are variables which specifies which Boost version CMake would search and use. For example: Boost_USE_MULTITHREADED, Boost_USE_STATIC_LIB, Boost_USE_STATIC_RUNTIME etc.
See FindBoost.cmake for more documentation.
B
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net