[CMake] Does CMAKE_DEBUG_POSTFIX not affect executables?

Michael Jackson mike.jackson at bluequartz.net
Mon Oct 27 08:19:37 EDT 2008


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                  mike.jackson at bluequartz.net
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
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake



More information about the CMake mailing list