Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
55e7b299
Commit
55e7b299
authored
Sep 30, 2015
by
peastman
Browse files
Merge pull request #1162 from peastman/tests
Don't try to build tests if BUILD_TESTING is off
parents
82a82741
29137fd3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
platforms/cuda/CMakeLists.txt
platforms/cuda/CMakeLists.txt
+2
-2
platforms/opencl/CMakeLists.txt
platforms/opencl/CMakeLists.txt
+2
-2
No files found.
platforms/cuda/CMakeLists.txt
View file @
55e7b299
...
...
@@ -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.
...
...
platforms/opencl/CMakeLists.txt
View file @
55e7b299
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment