File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -507,10 +507,14 @@ if(build_runtimes)
507
507
endif ()
508
508
509
509
# Forward user-provived system configuration to runtimes for requirement introspection.
510
- # CMAKE_PREFIX_PATH is the search path for CMake packages.
510
+ # CMAKE_PREFIX_PATH is the search path for CMake packages. In order to pass through
511
+ # the command line interface, the CMake semicolon separator needs to be replaced
512
+ # with $<SEMICOLON>
511
513
if (CMAKE_PREFIX_PATH )
512
- list (APPEND extra_cmake_args "-DCMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH} " )
514
+ string (JOIN "$<SEMICOLON>" escaped_cmake_prefix_path ${CMAKE_PREFIX_PATH} )
515
+ list (APPEND extra_cmake_args "-DCMAKE_PREFIX_PATH=${escaped_cmake_prefix_path} " )
513
516
endif ()
517
+
514
518
# CMAKE_PROGRAM_PATH is the search path for executables such as python.
515
519
if (CMAKE_PROGRAM_PATH )
516
520
list (APPEND extra_cmake_args "-DCMAKE_PROGRAM_PATH=${CMAKE_PROGRAM_PATH} " )
You can’t perform that action at this time.
0 commit comments