Hi!

My cmake project (using the texas instruments cl6x compiler) contains
two configurations, release and debug:


set(CMAKE_C_FLAGS           "-whatever -flags")
set(CMAKE_CXX_FLAGS         ${CMAKE_C_FLAGS})


set(CMAKE_C_FLAGS_DEBUG     "-g  -d\"_DEBUG\" ")
set(CMAKE_C_FLAGS_RELEASE   "-O3")
set(CMAKE_CXX_FLAGS_DEBUG   ${CMAKE_C_FLAGS_DEBUG})
set(CMAKE_CXX_FLAGS_RELEASE ${CMAKE_C_FLAGS_RELEASE})

but for some files, even when using the debug configuration, i'd need
to remove the "-g" for some files. Is there some way to get this done?

using

SET_SOURCE_FILES_PROPERTIES( ${LIST_OF_FILES} PROPERTIES COMPILE_FLAGS "-O3")

would add -O3 again no matter what configuration, which would be fine,
but i couldn't find out how to set per file C(XX)_FLAGS_DEBUG so i'd
be able to remove the -g

Is this somehow possible?

Thank you and kind regards,

Florian Reinhard
_______________________________________________
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

Reply via email to