aboutsummaryrefslogtreecommitdiff
path: root/libc/test
diff options
context:
space:
mode:
Diffstat (limited to 'libc/test')
-rw-r--r--libc/test/CMakeLists.txt12
1 files changed, 8 insertions, 4 deletions
diff --git a/libc/test/CMakeLists.txt b/libc/test/CMakeLists.txt
index 5e26a10..b5c989a 100644
--- a/libc/test/CMakeLists.txt
+++ b/libc/test/CMakeLists.txt
@@ -8,10 +8,14 @@ add_custom_target(libc-long-running-tests)
add_subdirectory(UnitTest)
-if(LIBC_TARGET_OS_IS_GPU AND
- (NOT TARGET libc.utils.gpu.loader OR LIBC_GPU_TESTS_DISABLED))
- message(WARNING "Cannot build libc GPU tests, missing loader or architecture")
- return()
+if(LIBC_TARGET_OS_IS_GPU)
+ if(NOT TARGET libc.utils.gpu.loader)
+ message(WARNING "Cannot build libc GPU tests, missing loader.")
+ return()
+ elseif(LIBC_GPU_TESTS_DISABLED)
+ message(WARNING "Cannot build libc GPU tests, missing target architecture.")
+ return()
+ endif()
endif()
add_subdirectory(include)