mirror of
https://github.com/reactos/reactos.git
synced 2024-11-26 21:13:30 +08:00
8e1fa03456
- add_target_link_flags changed to target_link_options - add_target_property changed to set_property(... APPEND ...)
10 lines
395 B
CMake
10 lines
395 B
CMake
|
|
# remove_target_compile_options
|
|
# Remove one option from the target COMPILE_OPTIONS property,
|
|
# previously added through add_compile_options
|
|
function(remove_target_compile_option _module _option)
|
|
get_target_property(_options ${_module} COMPILE_OPTIONS)
|
|
list(REMOVE_ITEM _options ${_option})
|
|
set_target_properties(${_module} PROPERTIES COMPILE_OPTIONS "${_options}")
|
|
endfunction()
|