Only include test if opencl is found

This commit is contained in:
Tong Dong Qiu committed 2021-12-09 08:39:43 +01:00
1 parent bd9e13d4bd
commit aa5f36b835
1 file changed
+1 -1
+1 -1
View File
@@ -148,7 +148,6 @@ list (APPEND TEST_SOURCE_FILES
tests/test_timer.cpp
tests/test_invert.cpp
tests/test_stoppedwells.cpp
tests/test_solvetransposed3x3.cpp
tests/test_relpermdiagnostics.cpp
tests/test_norne_pvt.cpp
tests/test_wellprodindexcalculator.cpp
@@ -169,6 +168,7 @@ if(CUDA_FOUND)
endif()
if(OPENCL_FOUND)
list(APPEND TEST_SOURCE_FILES tests/test_openclSolver.cpp)
list(APPEND TEST_SOURCE_FILES tests/test_solvetransposed3x3.cpp)
endif()
list (APPEND TEST_DATA_FILES