@@ -514,22 +514,22 @@ else()
514514 ${CMAKE_SOURCE_DIR} . ${pyroot_legacy} ${__cling_pch}
515515 COMMAND
516516 ${CMAKE_COMMAND} -E env ROOTIGNOREPREFIX=1 ${Python3_EXECUTABLE}
517- ${CMAKE_SOURCE_DIR} /etc/dictpch/makepch.py etc/allDict.cxx.pch
518- ${__allIncludes} -I${CMAKE_BINARY_DIR} /include -I${CMAKE_SOURCE_DIR} /core
517+ " ${CMAKE_SOURCE_DIR} /etc/dictpch/makepch.py" etc/allDict.cxx.pch
518+ ${__allIncludes} -I" ${CMAKE_BINARY_DIR} /include" -I" ${CMAKE_SOURCE_DIR} /core"
519519 DEPENDS
520520 rootcling ${__pch_dependencies} ${__pch_dictionaries}
521- ${CMAKE_SOURCE_DIR} /cmake/unix /makepchinput.py
522- ${CMAKE_SOURCE_DIR} /etc/dictpch/makepch.py
521+ " ${CMAKE_SOURCE_DIR} /cmake/unix/makepchinput.py"
522+ " ${CMAKE_SOURCE_DIR} /etc/dictpch/makepch.py"
523523 )
524524 add_custom_target (onepcm ALL DEPENDS etc/allDict.cxx.pch)
525- install (FILES ${CMAKE_BINARY_DIR} /etc/allDict.cxx.pch DESTINATION ${CMAKE_INSTALL_SYSCONFDIR} )
526- install (DIRECTORY ${CMAKE_BINARY_DIR} /etc/dictpch DESTINATION ${CMAKE_INSTALL_SYSCONFDIR} )
525+ install (FILES " ${CMAKE_BINARY_DIR} /etc/allDict.cxx.pch" DESTINATION ${CMAKE_INSTALL_SYSCONFDIR} )
526+ install (DIRECTORY " ${CMAKE_BINARY_DIR} /etc/dictpch" DESTINATION ${CMAKE_INSTALL_SYSCONFDIR} )
527527endif ()
528528
529529# FIXME: move installation of PCMS in ROOT_GENERATE_DICTIONARY().
530530# We are excluding directories, which are accidentaly copied via unxpected behaviour of install(DIRECTORY ..)
531531install (
532- DIRECTORY ${CMAKE_BINARY_DIR} /lib/
532+ DIRECTORY " ${CMAKE_BINARY_DIR} /lib/"
533533 DESTINATION ${CMAKE_INSTALL_LIBDIR}
534534 FILES_MATCHING
535535 PATTERN "*.pcm"
@@ -553,7 +553,8 @@ if(runtime_cxxmodules)
553553 set (modules_idx_cmd COMMAND ${CMAKE_COMMAND} -E env PATH ="${library_output_dir} \\\; %PATH%"
554554 ROOTIGNOREPREFIX=1 ROOT_HIST=0 $<TARGET_FILE:root.exe> -l -q -b)
555555 else ()
556- set (modules_idx_cmd COMMAND ${ld_library_path} =${library_output_dir} :$ENV{${ld_library_path} }
556+ cmake_path(CONVERT ${library_output_dir} TO_NATIVE_PATH_LIST library_output_dir)
557+ set (modules_idx_cmd COMMAND ${CMAKE_COMMAND} -E env ${ld_library_path} =${library_output_dir} :$ENV{${ld_library_path} }
557558 ROOTIGNOREPREFIX=1 ROOT_HIST=0 $<TARGET_FILE:root.exe> -l -q -b)
558559 endif ()
559560 add_custom_command (OUTPUT ${library_output_dir} /modules.idx
@@ -577,7 +578,7 @@ if(WIN32)
577578 set (hsimple_cmd COMMAND ${CMAKE_COMMAND} -E env PATH ="${CMAKE_RUNTIME_OUTPUT_DIRECTORY} \\\; %PATH%"
578579 ROOTIGNOREPREFIX=1 ROOT_HIST=0 $<TARGET_FILE:root.exe> -l -q -b -n -x ${CMAKE_SOURCE_DIR} /tutorials/hsimple.C -e return)
579580else ()
580- set (hsimple_cmd COMMAND ${MODULES_ROOT_INCPATH} ${ld_library_path} =${CMAKE_LIBRARY_OUTPUT_DIRECTORY} :$ENV{${ld_library_path} }
581+ set (hsimple_cmd COMMAND ${CMAKE_COMMAND} -E env ${ld_library_path} =${CMAKE_LIBRARY_OUTPUT_DIRECTORY} :$ENV{${ld_library_path} }
581582 ROOTIGNOREPREFIX=1 ROOT_HIST=0 $<TARGET_FILE:root.exe> -l -q -b -n -x ${CMAKE_SOURCE_DIR} /tutorials/hsimple.C -e return)
582583endif ()
583584add_custom_command (OUTPUT tutorials/hsimple.root
0 commit comments