COMPILE_FLAGS in SET_TARGET_PROPERTIES will allow you to set per-target compile flags and definitions.
Denis > I am building my library for two different processors arm7 > and arm9. > devkitArm requeres ARM7 or ARM9 macroses should be defined > when > building for any processor. I tried to write > > include_directories(./) > > set(SOURCES > src/library.cpp > ) > > add_definitions(-DARM7) > add_library(sandbox-arm7 ${SOURCES}) > remove_definitions(-DARM7) > add_definitions(-DARM9) > add_library(sandbox-arm9 ${SOURCES}) > remove_definitions(-DARM9) > > but it does not work as expected. _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake