[CMake] Visual Studio and /DEBUG linker flag

Tyler Roscoe tyler at cryptio.net
Wed Oct 21 12:43:55 EDT 2009


On Wed, Oct 21, 2009 at 10:30:34AM -0600, Steven Wilson wrote:
> 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

I assume you're not using the RelWithDebInfo build configuration?

tyler


More information about the CMake mailing list