[CMake] Visual Studio and /DEBUG linker flag

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


I am using the Release configuration.

On Wed, Oct 21, 2009 at 10:43 AM, Tyler Roscoe <tyler at cryptio.net> wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20091021/b099d5a6/attachment.htm>


More information about the CMake mailing list