From c13df09f08b661ec0dafd2cec3339e8a37c0d403 Mon Sep 17 00:00:00 2001 From: Andrey Morozov Date: Mon, 26 Jul 2010 14:16:33 +0000 Subject: [PATCH] minor fix --- tests/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 3dfbc65e49..6ec862e282 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)