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)
412412 # Only add the flag if it is not empty
413413 string (STRIP "${arg_FLAGS} " _strippedFlags)
414414 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 ()
415422 get_target_property (_target_type ${arg_TO} TYPE )
416423 if (("${_target_type} " STREQUAL "INTERFACE_LIBRARY" ) AND (${CMAKE_VERSION} VERSION_LESS "3.11.0" ))
417424 set_property (TARGET ${arg_NAME} APPEND PROPERTY
You can’t perform that action at this time.
0 commit comments