"platforms/cuda2/tests/TestCudaGBSAOBCForce.cpp" did not exist on "806232c3cccc34797b9a8baeb63da3a210c92a52"
Commit 55e7b299 authored by peastman's avatar peastman
Browse files

Merge pull request #1162 from peastman/tests

Don't try to build tests if BUILD_TESTING is off
parents 82a82741 29137fd3
......@@ -13,9 +13,9 @@
#----------------------------------------------------
set(OPENMM_BUILD_CUDA_TESTS TRUE CACHE BOOL "Whether to build CUDA test cases")
if(OPENMM_BUILD_CUDA_TESTS)
if(BUILD_TESTING AND OPENMM_BUILD_CUDA_TESTS)
SUBDIRS (tests)
endif(OPENMM_BUILD_CUDA_TESTS)
endif(BUILD_TESTING AND OPENMM_BUILD_CUDA_TESTS)
# The source is organized into subdirectories, but we handle them all from
# this CMakeLists file rather than letting CMake visit them as SUBDIRS.
......
......@@ -13,9 +13,9 @@
#----------------------------------------------------
set(OPENMM_BUILD_OPENCL_TESTS TRUE CACHE BOOL "Whether to build OpenCL test cases")
if(OPENMM_BUILD_OPENCL_TESTS)
if(BUILD_TESTING AND OPENMM_BUILD_OPENCL_TESTS)
SUBDIRS (tests)
endif(OPENMM_BUILD_OPENCL_TESTS)
endif(BUILD_TESTING AND OPENMM_BUILD_OPENCL_TESTS)
# The source is organized into subdirectories, but we handle them all from
# this CMakeLists file rather than letting CMake visit them as SUBDIRS.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment