@@ -576,7 +576,7 @@ function(ROOT_GENERATE_DICTIONARY dictionary)
576576 set (pcm_name ${library_output_dir} /${libprefix}${library_output_name} _rdict.pcm)
577577 if (ARG_MODULE)
578578 if (ARG_MULTIDICT)
579- set (newargs ${newargs} -multiDict)
579+ set (newargs ${newargs} -- multiDict)
580580 set (pcm_name ${library_output_dir} /${libprefix}${library_output_name} _${dictionary} _rdict.pcm)
581581 set (rootmap_name ${library_output_dir} /${libprefix}${library_output_name} 32.rootmap)
582582 else ()
@@ -617,7 +617,7 @@ function(ROOT_GENERATE_DICTIONARY dictionary)
617617 set (rootmap_name)
618618 set (rootmapargs)
619619 else ()
620- set (rootmapargs -rml ${library_name} -rmf ${rootmap_name} )
620+ set (rootmapargs -- rml ${library_name} - -rmf ${rootmap_name} )
621621 endif ()
622622
623623 #---Get the library and module dependencies-----------------
@@ -643,7 +643,7 @@ function(ROOT_GENERATE_DICTIONARY dictionary)
643643 endif ()
644644
645645 if (cpp_module_file)
646- set (newargs -cxxmodule ${newargs} )
646+ set (newargs -- cxxmodule ${newargs} )
647647 endif ()
648648
649649 #---what rootcling command to use--------------------------
@@ -658,12 +658,12 @@ function(ROOT_GENERATE_DICTIONARY dictionary)
658658 else ()
659659 if (CMAKE_PROJECT_NAME STREQUAL ROOT)
660660 if (MSVC AND CMAKE_ROOTTEST_DICT)
661- set (command ${CMAKE_COMMAND } -E env "ROOTIGNOREPREFIX=1" ${CMAKE_BINARY_DIR } /bin/rootcling.exe -rootbuild)
661+ set (command ${CMAKE_COMMAND } -E env "ROOTIGNOREPREFIX=1" ${CMAKE_BINARY_DIR } /bin/rootcling.exe -- rootbuild)
662662 else ()
663663 if (APPLE )
664- set (command ${CMAKE_COMMAND } -E env "ROOTIGNOREPREFIX=1" SDKROOT=${CMAKE_OSX_SYSROOT} $<TARGET_FILE :rootcling > -rootbuild)
664+ set (command ${CMAKE_COMMAND } -E env "ROOTIGNOREPREFIX=1" SDKROOT=${CMAKE_OSX_SYSROOT} $<TARGET_FILE :rootcling > -- rootbuild)
665665 else ()
666- set (command ${CMAKE_COMMAND } -E env "ROOTIGNOREPREFIX=1" $<TARGET_FILE :rootcling > -rootbuild)
666+ set (command ${CMAKE_COMMAND } -E env "ROOTIGNOREPREFIX=1" $<TARGET_FILE :rootcling > -- rootbuild)
667667 endif ()
668668 # Modules need RConfigure.h copied into include/.
669669 set (ROOTCLINGDEP rootcling rconfigure)
@@ -686,7 +686,7 @@ function(ROOT_GENERATE_DICTIONARY dictionary)
686686 #---build the path exclusion switches----------------------
687687 set (excludepathsargs "" )
688688 foreach (excludepath ${excludepaths} )
689- set (excludepathsargs ${excludepathsargs} -excludePath ${excludepath} )
689+ set (excludepathsargs ${excludepathsargs} -- excludePath ${excludepath} )
690690 endforeach ()
691691
692692 #---build the implicit dependencies arguments
@@ -724,7 +724,7 @@ function(ROOT_GENERATE_DICTIONARY dictionary)
724724
725725 set (compIncPaths )
726726 foreach (implinc IN LISTS CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES )
727- list (APPEND compIncPaths "-compilerI ${implinc} ")
727+ list (APPEND compIncPaths "-- compilerI ${implinc} ")
728728 endforeach ()
729729
730730 if (cpp_module_file AND TARGET ${ARG_MODULE} )
0 commit comments