Skip to content

Commit

Permalink
Merge pull request #271 from scivision/develop
Browse files Browse the repository at this point in the history
cmake: P4EST_BUILD_TESTING to allow parent project control
  • Loading branch information
cburstedde authored Jan 7, 2024
2 parents 29a4fc2 + 8fd5b48 commit 8619281
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ HOMEPAGE_URL https://www.p4est.org/
DESCRIPTION "p4est manages a collection---a forest---of octrees in parallel."
VERSION ${PROJECT_VERSION})

include(CTest)
enable_testing()

# --- user options

Expand Down Expand Up @@ -69,9 +69,9 @@ add_subdirectory(src)

# --- optional test and install

if(BUILD_TESTING)
if(P4EST_BUILD_TESTING)
add_subdirectory(test)
endif(BUILD_TESTING)
endif()

# --- packaging

Expand Down
2 changes: 2 additions & 0 deletions cmake/options.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
option(enable_p6est "build p6est" on)
option(enable_p8est "build p8est" on)

option(P4EST_BUILD_TESTING "build p4est testing" on)

option(enable-file-deprecated "use deprecated data file format" off)

option(vtk_binary "VTK binary interface" on)
Expand Down

0 comments on commit 8619281

Please sign in to comment.