[CMake] How to get current visualstudio version?
Nils Gladitz
nilsgladitz at gmail.com
Mon Dec 28 06:07:48 EST 2015
On 28.12.2015 06:50, Xi Shen wrote:
> Strange, the FindBoost module expects boost libraries start with
> "boost_" by default. But the libraries I got from the default build
> configuration start with "libboost_". No wonder it did not work the
> first I tried.
This somewhat depends on platform but as far as I remember e.g. on
Windows the Boost static libraries begin with "lib".
While the import libraries for the DLL version of the library do not.
To locate the static libraries you would e.g. set(Boost_USE_STATIC_LIBS
ON) before calling find_package() for Boost.
Nils
More information about the CMake
mailing list