Skip to content

Commit c0dec47

Browse files
npmillerjsji
authored andcommitted
[UR] Fix CMake for in-tree UR checkout (#12157)
Without the keyword `EXISTS` it just tests if the string is not empty, which it will never be. Also fix a typo and formatting of the error message.
1 parent 0aadb1b commit c0dec47

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sycl/plugins/unified_runtime/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ elseif(SYCL_PI_UR_SOURCE_DIR)
9393
else()
9494
# SYCL_PI_UR_USE_FETCH_CONTENT is OFF and SYCL_PI_UR_SOURCE_DIR has not been
9595
# set, check if the fallback local directory exists.
96-
if(NOT ${CMAKE_CURRENT_SOURCE_DIR}/unified-runtime)
96+
if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/unified-runtime)
9797
message(FATAL_ERROR
98-
"SYCL_PI_UR_USE_FETCH_CONTENT is disabled but no alternative Unified
99-
Runtime source directory has be proivided, either:
98+
"SYCL_PI_UR_USE_FETCH_CONTENT is disabled but no alternative Unified \
99+
Runtime source directory has been provided, either:
100100
101101
* Set -DSYCL_PI_UR_SOURCE_DIR=/path/to/unified-runtime
102102
* Clone the UR repo in ${CMAKE_CURRENT_SOURCE_DIR}/unified-runtime")

0 commit comments

Comments
 (0)