Disregard my previous reply.

On Tue, Oct 20, 2009 at 09:28:19AM -0600, Steven Wilson wrote:
> I am asking why CMake doesn't support the following:
> 
> set_target_properties(${TARGET} PROPERTIES COMPILE_FLAGS_<CONFIG>
> "-fmyflag")

Ok, good question. It seems like a pretty compelling feature.

Maybe you can cheat and do something like this?:

set (CMAKE_CXX_FLAGS_DEBUG_BACKUP ${CMAKE_CXX_FLAGS_DEBUG})
set (CMAKE_CXX_FLAGS_DEBUG "-fmyflag")
add_library (...)
set (CMAKE_CXX_FLAGS_DEBUG ${CMAKE_CXX_FLAGS_DEBUG_BACKUP})

tyler
_______________________________________________
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