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
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
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
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)
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
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
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?
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
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