diff options
author | 2021-07-15 11:47:19 +0200 | |
---|---|---|
committer | 2021-07-16 10:10:37 +0200 | |
commit | f62e74657d802555db61345eaa46362b09b12e88 (patch) | |
tree | 8ce3ac8d041c789cae6fa4571fed668f44c0fd15 /cmake/Modules | |
parent | 08233d44a6cfde878d7e10bca38ae935ed1c8fd5 (diff) |
[HICN-714] Update build scriptsv21.06-rc0
Signed-off-by: Mauro Sardara <msardara@cisco.com>
Change-Id: Ica3b4f66087446551230a3742fd7bd4db87a4a7e
Signed-off-by: Mauro Sardara <msardara@cisco.com>
Diffstat (limited to 'cmake/Modules')
-rw-r--r-- | cmake/Modules/BuildMacros.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cmake/Modules/BuildMacros.cmake b/cmake/Modules/BuildMacros.cmake index 2c301db5c..15e2ff1a8 100644 --- a/cmake/Modules/BuildMacros.cmake +++ b/cmake/Modules/BuildMacros.cmake @@ -17,6 +17,14 @@ include(GNUInstallDirs) +macro(remove_flag_from_target target flag) + get_target_property(target_cxx_flags ${target} COMPILE_OPTIONS) + if(target_cxx_flags) + list(REMOVE_ITEM target_cxx_flags ${flag}) + set_target_properties(${target} PROPERTIES COMPILE_OPTIONS "${target_cxx_flags}") + endif() +endmacro() + macro(build_executable exec) cmake_parse_arguments(ARG "NO_INSTALL" |