[Cmake] MSVC Ignore libraries
Bill Hoffman
bill.hoffman at kitware.com
Thu Mar 20 11:18:53 EST 2003
Try these variables in the cache:
CMAKE_EXE_LINKER_FLAGS
CMAKE_SHARED_LINKER_FLAGS
(I just checked and there are some problems with the current release,
and these will not work with vs 7, but they will work with vs 6 )
-Bill
At 10:13 AM 3/20/2003, Parag Chandra wrote:
>Hi Cody,
>
>The way I've done this in the past is to modify the EXEHeader.dsptemplate file that CMake uses (this is found in the Templates subdir of your CMake installation). I've had to do this for the case of linking release libraries into a debug build. I simply went to the section for the "Win32 Debug" configuration and manually appended "/NODEFAULTLIB:msvcrt.lib" to the ADD LINK32 line. Of course, this will cause every project created with CMake to ignore this library, which may not be what you want. So I'd like to see a CMake feature that would allow this, because it's not always possible to avoid mixing release libraries with debug builds.
>
>Best regards,
>-Parag Chandra
More information about the CMake
mailing list