[CMake] Does CMAKE_DEBUG_POSTFIX not affect executables?

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Mon Oct 27 07:56:34 EDT 2008


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


More information about the CMake mailing list