Skip to content

Commit fbb7f2c

Browse files
authored
[runtimes] - Use cmake semicolon generator expression for rocr-runtime (llvm#3212)
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 af05b3e commit fbb7f2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/runtimes/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ if(build_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.
525525
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;${CMAKE_PREFIX_PATH}")
526+
list(APPEND extra_cmake_args "-DCMAKE_PREFIX_PATH=${CMAKE_BINARY_DIR}/lib/cmake$<SEMICOLON>${CMAKE_PREFIX_PATH}")
527527
endif()
528528
if (OFFLOAD_EXTERNAL_PROJECT_UNIFIED_ROCR)
529529
if(NOT DEFINED LIBOMPTARGET_EXTERNAL_PROJECT_HSA_PATH)

0 commit comments

Comments
 (0)