Skip to content

Commit

Permalink
Add CONDUIT_ENABLE_TESTS
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrush committed Oct 14, 2019
1 parent a4ccb3c commit 31147c2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/CMakeLists.txt
Expand Up @@ -74,6 +74,10 @@ option(ENABLE_FORTRAN "Build Fortran support" OFF)

option(ENABLE_MPI "Build MPI Support" OFF)

# Add another option that provides extra
# control over conduit tests for cases where
# conduit is brought in as a submodule
option(CONDUIT_ENABLE_TESTS "Build conduit tests" ON)

################################
# Invoke CMake Fortran setup
Expand Down Expand Up @@ -146,7 +150,11 @@ endif()
# Add our tests
################################
if(ENABLE_TESTS)
add_subdirectory(tests)
if(CONDUIT_ENABLE_TESTS)
add_subdirectory(tests)
else()
message(STATUS "Skipping test targets (CONDUIT_ENABLE_TESTS = OFF)")
endif()
else()
message(STATUS "Skipping test targets (ENABLE_TESTS = OFF)")
endif()
Expand Down
1 change: 1 addition & 0 deletions src/docs/sphinx/building.rst
Expand Up @@ -121,6 +121,7 @@ Conduit's build system supports the following CMake options:
* **ENABLE_DOCS** - Controls if the Conduit documentation is built (when sphinx and doxygen are found ). *(default = ON)*
* **ENABLE_COVERAGE** - Controls if code coverage compiler flags are used to build Conduit. *(default = OFF)*
* **ENABLE_PYTHON** - Controls if the Conduit Python module is built. *(default = OFF)*
* **CONDUIT_ENABLE_TESTS** - Extra control for if Conduit unit tests are built. Useful for in cases where Conduit is pulled into a larger CMake project *(default = ON)*


The Conduit Python module can be built for Python 2 or Python 3. To select a specific Python, set the CMake variable **PYTHON_EXECUTABLE** to path of the desired python binary. The Conduit Python module requires Numpy. The selected Python instance must provide Numpy, or PYTHONPATH must be set to include a Numpy install compatible with the selected Python install.
Expand Down

0 comments on commit 31147c2

Please sign in to comment.