[CMake] Bug: SET(CMAKE_DEBUG_POSTFIX "D")

Mathieu MARACHE mathieu.marache at gmail.com
Fri Sep 29 11:40:02 EDT 2006


Thanks Brad,

That did the trick !

BTW, we tried to buy the CMake book this summer but our supplier told us it
was not edited anymore... Is this true ? And if yes will an updated version
of the book be released ?

Best regards,
Mathieu

2006/9/29, Brad King <brad.king at kitware.com>:
>
> Mathieu MARACHE wrote:
> > Hi,
> > I've got a small bug trying to use configuration postfixes under windows
> > with at least NMakes and VisualStudio C++ .NET 7.1 . I used the latest
> > 2.4.3 release of CMake.
> >
> > The following command works for libraries and shared libraries but not
> > for executables. For example :
> >
> > with SET(CMAKE_DEBUG_POSTFIX "D"), libraries get created as expected :
> >  - myLibD.dll in Debug and
> >  - myLib.dll in others configurations
> >
> > but for executables, it is always :
> >  - myApp.exe
> >
> > Should I post a bug report (I haven't found any mentioning this yet) ?
>
> Look at the documentation of SET_TARGET_PROPERTIES.  You can set a
> DEBUG_POSTFIX property on any target.  The documentation explains why
> CMAKE_DEBUG_POSTFIX doesn't work for executables.
>
> -Brad
>



-- 
Mathieu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20060929/56b91a11/attachment.html


More information about the CMake mailing list