Reactos
1
2# remove_target_compile_options
3# Remove one option from the target COMPILE_OPTIONS property,
4# previously added through add_compile_options
5function(remove_target_compile_option _module _option)
6 get_target_property(_options ${_module} COMPILE_OPTIONS)
7 list(REMOVE_ITEM _options ${_option})
8 set_target_properties(${_module} PROPERTIES COMPILE_OPTIONS "${_options}")
9endfunction()