Skip to content

Commit ec98d47

Browse files
authored
[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 44cbbef commit ec98d47

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
@@ -96,10 +96,10 @@ elseif(SYCL_PI_UR_SOURCE_DIR)
9696
else()
9797
# SYCL_PI_UR_USE_FETCH_CONTENT is OFF and SYCL_PI_UR_SOURCE_DIR has not been
9898
# set, check if the fallback local directory exists.
99-
if(NOT ${CMAKE_CURRENT_SOURCE_DIR}/unified-runtime)
99+
if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/unified-runtime)
100100
message(FATAL_ERROR
101-
"SYCL_PI_UR_USE_FETCH_CONTENT is disabled but no alternative Unified
102-
Runtime source directory has be proivided, either:
101+
"SYCL_PI_UR_USE_FETCH_CONTENT is disabled but no alternative Unified \
102+
Runtime source directory has been provided, either:
103103
104104
* Set -DSYCL_PI_UR_SOURCE_DIR=/path/to/unified-runtime
105105
* Clone the UR repo in ${CMAKE_CURRENT_SOURCE_DIR}/unified-runtime")

0 commit comments

Comments
 (0)