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

2006-09-29 Thread Mathieu MARACHE
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_POSTFI

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

2006-09-29 Thread Brad King
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. F

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

2006-09-29 Thread Mathieu MARACHE
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,Mathieu2006/9/29, Brad King <[EMAIL PROTECTED]>: Mathieu MARACHE wrote:> H

RE: [CMake] 3rd party modules

2006-09-29 Thread Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA
Thanks Brad. So for those two lines: SET(CMAKE_DEBUG_POSTFIX "Debug") GET_TARGET_PROPERTY(LIBNAME Foo LOCATION) Should I get? /lib/libfooDebug.a I am getting (no 'Debug'): /lib/libfoo.a but libfooDebug.a is generated. -- Artur Kedzierski, JF33 Voice (951)

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

2006-09-29 Thread Brad King
Mathieu MARACHE wrote: > 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 ? I don't know why they said that. Kitware has always been the publisher and it is still upd

Re: [CMake] 3rd party modules

2006-09-29 Thread Brad King
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote: > Thanks Brad. > So for those two lines: > SET(CMAKE_DEBUG_POSTFIX "Debug") > GET_TARGET_PROPERTY(LIBNAME Foo LOCATION) > Should I get? > /lib/libfooDebug.a > I am getting (no 'Debug'): > /lib/libfoo.a > but libfoo

RE: [CMake] 3rd party modules

2006-09-29 Thread Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA
That didn't do it. This is what I am doing: ADD_LIBRARY(Foo foo.cpp) SET_TARGET_PROPERTIIES(Foo PROPERTIES DEBUG_POSTFIX "Debug") GET_TARGET_PROPERTY(LIBNAME Foo LOCATION) I am still getting libfoo.a for the ${LIBNAME} but libfooDebug.a is generated. Am I missing something?

Re: [CMake] 3rd party modules

2006-09-29 Thread Brad King
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote: > That didn't do it. This is what I am doing: > ADD_LIBRARY(Foo foo.cpp) > SET_TARGET_PROPERTIIES(Foo PROPERTIES DEBUG_POSTFIX "Debug") > GET_TARGET_PROPERTY(LIBNAME Foo LOCATION) > I am still getting libfoo.a for the ${LIBNAME} but

Re: [CMake] 3rd party modules

2006-09-29 Thread Brad King
Brad King wrote: > Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote: >> That didn't do it. This is what I am doing: >> ADD_LIBRARY(Foo foo.cpp) >> SET_TARGET_PROPERTIIES(Foo PROPERTIES DEBUG_POSTFIX "Debug") >> GET_TARGET_PROPERTY(LIBNAME Foo LOCATION) >> I am still getting libfoo.a f