[CMake] "Ignore specific Library" on Windows
Sylvain Benner
benner at virtools.com
Mon Dec 18 04:40:14 EST 2006
> Hi,
Hi
>
> I have a cross-platform project need set the "Ignore Specific Library" to
> libc.lib and libcmt.lib in Visual C++ .net. How can I do this in
> CMakeLists.txt?
>
> There are hundred more sub-projects in one solution, I do not want to hand
> modify this in each project properties.
>
> Thanks in advance,
> Grant
In your top level CMakeLists.txt define the variable
CMAKE_EXE_LINKER_FLAGS
*SET(CMAKE_EXE_LINKER_FLAGS /NODEFAULTLIB:\"YOURLIB_1,YOURLIB_2[,...]\")*
For further information, you can take a look to this recent thread : http://www.cmake.org/pipermail/cmake/2006-December/012299.html
-Sylvain
More information about the CMake
mailing list