Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CONDUIT_ENABLE_TESTS #454

Merged
merged 1 commit into from Oct 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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