[CMake] FindBoost and -T
Krause, Felix
felix.krause at devoteam.com
Wed Apr 30 09:32:59 EDT 2014
Hi everyone,
I generate a Visual Studio project with cmake with this command:
cmake -G "Visual Studio 12" -T "v100" ..
In my CMakeLists.txt, I use FindBoost to link against some of the Boost
libraries. It seems like FindBoost looks for the wrong versions of the
libraries, this is the output with Boost_DEBUG:
[ C:/Program Files (x86)/CMake
2.8/share/cmake-2.8/Modules/FindBoost.cmake:930 ] Searching for
SYSTEM_LIBRARY_RELEASE:
libboost_system-vc120-mt-1_53;libboost_system-vc120-mt;libboost_system-mt-1_53;libboost_system-mt;libboost_system;libboost_system-vc120-mt-s-1_53;libboost_system-vc120-mt-s;libboost_system-mt-s-1_53;libboost_system-mt-s
[ C:/Program Files (x86)/CMake
2.8/share/cmake-2.8/Modules/FindBoost.cmake:966 ] Searching for
SYSTEM_LIBRARY_DEBUG:
libboost_system-vc120-mt-gd-1_53;libboost_system-vc120-mt-gd;libboost_system-mt-gd-1_53;libboost_system-mt-gd;libboost_system-mt;libboost_system;libboost_system-vc120-mt-s-gd-1_53;libboost_system-vc120-mt-s-gd;libboost_system-mt-s-gd-1_53;libboost_system-mt-s-gd
CMake searches for "libboost_system-vc120-mt-1_53", when the correct
library to search for would be "libboost_system-vc100-mt-1_53"
(according to the value given to the -T parameter). Is this a bug in
FindBoost, or expected behavior?
Thanks,
Felix
More information about the CMake
mailing list