Skip to content

Commit 79000d8

Browse files
estewart08david-salinas
authored andcommitted
[runtimes] - Use cmake semicolon generator expression for rocr-runtime (llvm#3213)
Cmake consumes the semicolon and leaves a space between the paths. We need the semicolon to stay so CMAKE_PREFIX_PATH can be properly assembled and used.
1 parent 2d1c17a commit 79000d8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/runtimes/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,9 @@ if(build_runtimes)
522522
if("openmp" IN_LIST LLVM_ENABLE_RUNTIMES OR "offload" IN_LIST LLVM_ENABLE_RUNTIMES)
523523
# With ROCm 6.3 the ROCr runtime and the thunk layer share a single repository.
524524
# No need to provide a separate path for ROCt.
525+
if (OFFLOAD_EXTERNAL_PROJECT_UNIFIED_ROCR OR DEFINED LIBOMPTARGET_EXTERNAL_PROJECT_ROCM_DEVICE_LIBS_PATH)
526+
list(APPEND extra_cmake_args "-DCMAKE_PREFIX_PATH=${CMAKE_BINARY_DIR}/lib/cmake$<SEMICOLON>${CMAKE_PREFIX_PATH}")
527+
endif()
525528
if (OFFLOAD_EXTERNAL_PROJECT_UNIFIED_ROCR)
526529
if(NOT DEFINED LIBOMPTARGET_EXTERNAL_PROJECT_HSA_PATH)
527530
message(SEND_ERROR "External ROCr requires setting LIBOMPTARGET_EXTERNAL_PROJECT_HSA_PATH")

0 commit comments

Comments
 (0)