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
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
Great. That worked. Thank you.
________________________________
From: Bartek Taczała
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
participants (2)
-
Bartek Taczała
-
Koteswara Rao Ruvva