Skip to content

Commit 8012ec4

Browse files
authored
tests: Fix CT-only build errors with hipSYCL (#181)
1 parent 5212276 commit 8012ec4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/unit_tests/CMakeLists.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,10 @@ foreach(domain ${TARGET_DOMAINS})
159159
PROPERTIES TEST_PREFIX ${DOMAIN_PREFIX}/CT/
160160
DISCOVERY_TIMEOUT 30
161161
)
162-
if (USE_ADD_SYCL_TO_TARGET_INTEGRATION)
163-
add_sycl_to_target(TARGET test_main_${domain}_rt)
164-
endif()
165162

163+
if(BUILD_SHARED_LIBS)
164+
if (USE_ADD_SYCL_TO_TARGET_INTEGRATION)
165+
add_sycl_to_target(TARGET test_main_${domain}_rt)
166+
endif()
167+
endif()
166168
endforeach()

0 commit comments

Comments
 (0)