[CMake] Visual Studio and /DEBUG linker flag

Steven Wilson steven.wesley.wilson at gmail.com
Wed Oct 21 12:30:34 EDT 2009


I have CMake project that I use to generate a set of Visual Studio project
files.   On the CMake side I explicitly turn off CMAKE_EXE_LINKER_FLAGS and
CMAKE_EXE_LINKER_FLAGS_RELEASE by setting their values to the empty string
"".   When CMake generates the project files, I can open the .vcproj file
and check to make sure that /DEBUG does not appear in the linker flags for
the Release section of my program.   However, when I open the solution in
Visual Studio (2008 BTW), Visual Studio seems to automatically turn on
/DEBUG in the linker settings for my program.   I need /DEBUG to be turned
off for my Release configuration.  Does anyone know what is going on in this
situation?

Thanks,

Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20091021/b91adde3/attachment.htm>


More information about the CMake mailing list