I use something like the following:

#-- Set the Debug and Release names for the libraries
SET_TARGET_PROPERTIES( ${exe_name}
    PROPERTIES
    DEBUG_OUTPUT_NAME ${exe_debug_name}
    RELEASE_OUTPUT_NAME ${exe_release_name}
)

_________________________________________________________
Mike Jackson                  [EMAIL PROTECTED]
BlueQuartz Software                    www.bluequartz.net
Principal Software Engineer                  Dayton, Ohio



On Oct 27, 2008, at 7:56 AM, Christian Ehrlicher wrote:

Hi,

Looks like CMAKE_DEBUG_POSTFIX does not affect executables anymore:

----------------------------8<------------------
set(CMAKE_DEBUG_POSTFIX "d")
add_executable(test main.cpp)
#set_target_properties(test PROPERTIES DEBUG_POSTFIX d)

get_target_property(dbg_location test DEBUG_LOCATION)
message(STATUS "dbg_location: ${dbg_location}")
----------------------------8<------------------
result:
...
-- dbg_location: /home/ehrlicher_c/cmake-test/test

The documentation says that CMAKE_DEBUG_POSTFIX affects all targets.
set_target_properties(test PROPERTIES DEBUG_POSTFIX d) does successfully change the debug postfix for the specified target.


Is this a bug or did I understand something wrong?

Thx,
Christian
--
"Feel free" - 5 GB Mailbox, 50 FreeSMS/Monat ...
Jetzt GMX ProMail testen: http://www.gmx.net/de/go/promail
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to