@@ -554,7 +554,7 @@ function(ROOT_GENERATE_DICTIONARY dictionary)
554554 set (pcm_name ${library_output_dir} /${libprefix}${library_output_name} _rdict.pcm)
555555 if (ARG_MODULE)
556556 if (ARG_MULTIDICT)
557- set (newargs ${newargs} -multiDict)
557+ set (newargs ${newargs} -- multiDict)
558558 set (pcm_name ${library_output_dir} /${libprefix}${library_output_name} _${dictionary} _rdict.pcm)
559559 set (rootmap_name ${library_output_dir} /${libprefix}${library_output_name} 32.rootmap)
560560 else ()
@@ -595,7 +595,7 @@ function(ROOT_GENERATE_DICTIONARY dictionary)
595595 set (rootmap_name)
596596 set (rootmapargs)
597597 else ()
598- set (rootmapargs -rml ${library_name} -rmf ${rootmap_name} )
598+ set (rootmapargs -- rml ${library_name} - -rmf ${rootmap_name} )
599599 endif ()
600600
601601 #---Get the library and module dependencies-----------------
@@ -621,7 +621,7 @@ function(ROOT_GENERATE_DICTIONARY dictionary)
621621 endif ()
622622
623623 if (cpp_module_file)
624- set (newargs -cxxmodule ${newargs} )
624+ set (newargs -- cxxmodule ${newargs} )
625625 endif ()
626626
627627 #---what rootcling command to use--------------------------
@@ -632,9 +632,9 @@ function(ROOT_GENERATE_DICTIONARY dictionary)
632632 else ()
633633 if (CMAKE_PROJECT_NAME STREQUAL ROOT)
634634 if (MSVC AND CMAKE_ROOTTEST_DICT)
635- set (command ${CMAKE_COMMAND } -E env "ROOTIGNOREPREFIX=1" ${CMAKE_BINARY_DIR } /bin/rootcling.exe -rootbuild)
635+ set (command ${CMAKE_COMMAND } -E env "ROOTIGNOREPREFIX=1" ${CMAKE_BINARY_DIR } /bin/rootcling.exe -- rootbuild)
636636 else ()
637- set (command ${CMAKE_COMMAND } -E env "ROOTIGNOREPREFIX=1" $<TARGET_FILE :rootcling > -rootbuild)
637+ set (command ${CMAKE_COMMAND } -E env "ROOTIGNOREPREFIX=1" $<TARGET_FILE :rootcling > -- rootbuild)
638638 # Modules need RConfigure.h copied into include/.
639639 set (ROOTCLINGDEP rootcling rconfigure)
640640 endif ()
@@ -648,7 +648,7 @@ function(ROOT_GENERATE_DICTIONARY dictionary)
648648 #---build the path exclusion switches----------------------
649649 set (excludepathsargs "" )
650650 foreach (excludepath ${excludepaths} )
651- set (excludepathsargs ${excludepathsargs} -excludePath ${excludepath} )
651+ set (excludepathsargs ${excludepathsargs} -- excludePath ${excludepath} )
652652 endforeach ()
653653
654654 #---build the implicit dependencies arguments
@@ -686,7 +686,7 @@ function(ROOT_GENERATE_DICTIONARY dictionary)
686686
687687 set (compIncPaths )
688688 foreach (implinc IN LISTS CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES )
689- list (APPEND compIncPaths "-compilerI ${implinc} ")
689+ list (APPEND compIncPaths "-- compilerI ${implinc} ")
690690 endforeach ()
691691
692692 if (cpp_module_file AND TARGET ${ARG_MODULE} )
0 commit comments