diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 3dfbc65e4996103b770977d60bc84bc2b83d20eb..6ec862e2827a9f614ab3ab549d77b74044d51639 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -5,7 +5,9 @@ add_subdirectory(cxcore) add_subdirectory(ml) add_subdirectory(cxts) -set (BUILD_TESTS_GPU OFF CACHE BOOL "Build tests GPU") +if(WITH_CUDA) + set (BUILD_TESTS_GPU OFF CACHE BOOL "Build tests GPU") +endif() if(BUILD_TESTS_GPU AND WITH_CUDA) add_subdirectory(gpu)