[CMake] debug- and release options
Alexander Neundorf
a.neundorf-work at gmx.net
Mon Feb 6 15:52:32 EST 2006
Hi,
I just played a bit around with debug and release options in cmake.
Am I right that:
CMAKE_CXX_FLAGS is used always
CMAKE_CXX_FLAGS_DEBUG and CMAKE_CXX_FLAGS are used for buildtype==debug
CMAKE_CXX_FLAGS_RELEASE and CMAKE_CXX_FLAGS are used for
buildtype==release
And that
target_link_libraries(testapp libx optimized liby debug libz )
libx is linked in all cases
liby is linked if buildtype is not set and if buildtype==release
libz is only linked if buildtype==debug ?
Is it possible to have e.g. a "_debug" appended to the names of all
created libraries when doing a debug build ?
Bye
Alex
--
Telefonieren Sie schon oder sparen Sie noch?
NEU: GMX Phone_Flat http://www.gmx.net/de/go/telefonie
More information about the CMake
mailing list