File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -412,6 +412,13 @@ macro(blt_add_target_compile_flags)
412
412
# Only add the flag if it is not empty
413
413
string (STRIP "${arg_FLAGS} " _strippedFlags)
414
414
if (NOT "${_strippedFlags} " STREQUAL "" )
415
+ # COMPILE_OPTIONS and INTERFACE_COMPILE_OPTIONS are semicolon-delimited lists,
416
+ # but the string in arg_FLAGS may be a space-delimited string of command line options.
417
+ # Note: "SHELL:"" causes the flags to be not de-duplicated and parsed with
418
+ # separate_arguments
419
+ if (NOT "${_strippedFlags} " MATCHES SHELL:)
420
+ set (_strippedFlags "SHELL:${_strippedFlags} " )
421
+ endif ()
415
422
get_target_property (_target_type ${arg_TO} TYPE )
416
423
if (("${_target_type} " STREQUAL "INTERFACE_LIBRARY" ) AND (${CMAKE_VERSION} VERSION_LESS "3.11.0" ))
417
424
set_property (TARGET ${arg_NAME} APPEND PROPERTY
You can’t perform that action at this time.
0 commit comments