Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions llvm/runtimes/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -507,10 +507,14 @@ if(build_runtimes)
endif()

# Forward user-provived system configuration to runtimes for requirement introspection.
# CMAKE_PREFIX_PATH is the search path for CMake packages.
# CMAKE_PREFIX_PATH is the search path for CMake packages. In order to pass through
# the command line interface, the CMake semicolon separator needs to be replaced
# with $<SEMICOLON>
if(CMAKE_PREFIX_PATH)
list(APPEND extra_cmake_args "-DCMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH}")
string(JOIN "$<SEMICOLON>" escaped_cmake_prefix_path ${CMAKE_PREFIX_PATH})
list(APPEND extra_cmake_args "-DCMAKE_PREFIX_PATH=${escaped_cmake_prefix_path}")
endif()

# CMAKE_PROGRAM_PATH is the search path for executables such as python.
if(CMAKE_PROGRAM_PATH)
list(APPEND extra_cmake_args "-DCMAKE_PROGRAM_PATH=${CMAKE_PROGRAM_PATH}")
Expand Down