Skip to content

Commit ac2b203

Browse files
[SYCL] Fix SYCL unittest CMake (#7489)
a11cd0d moved gtest to another directory which causes the SYCL CMake to not find it and effectively skip configuring the unittests entirely. This commit adjusts the gtest search in accordance with the new location. Signed-off-by: Larsen, Steffen <[email protected]>
1 parent 5d5e9f4 commit ac2b203

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ if(SYCL_INCLUDE_TESTS)
336336
message(FATAL_ERROR
337337
"Can't build SYCL tests without LLVM_INCLUDE_TESTS enabled.")
338338
endif()
339-
if(EXISTS ${LLVM_MAIN_SRC_DIR}/utils/unittest/googletest/include/gtest/gtest.h)
339+
if(EXISTS ${LLVM_THIRD_PARTY_DIR}/unittest/googletest/include/gtest/gtest.h)
340340
add_subdirectory(unittests)
341341
list(APPEND SYCL_TEST_DEPS SYCLUnitTests)
342342
endif()

0 commit comments

Comments
 (0)