[Cmake] MSVC Ignore libraries

Parag Chandra pchandra at radonc.unc.edu
Thu Mar 20 10:13:42 EST 2003


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20030320/7bbe27a1/attachment.html>


More information about the CMake mailing list