Skip to content

Commit

Permalink
Merge pull request #316 from dutkalex/cmake-enable-examples
Browse files Browse the repository at this point in the history
CMake P4EST_BUILD_EXAMPLES flag
  • Loading branch information
cburstedde authored Oct 23, 2024
2 parents ed11c6b + aa233d0 commit 454a1c1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ include(cmake/pkgconf.cmake)
include(cmake/install.cmake)

# --- build examples
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.22)
if(P4EST_BUILD_EXAMPLES AND CMAKE_VERSION VERSION_GREATER_EQUAL 3.22)
add_subdirectory(example)
endif()

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

option(P4EST_BUILD_TESTING "build p4est testing" on)
option(P4EST_BUILD_EXAMPLES "build p4est examples" ON)

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

Expand Down
1 change: 1 addition & 0 deletions doc/author_dutka.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I place my contributions to p4est under the FreeBSD license. Alexandre Dutka ([email protected])
1 change: 1 addition & 0 deletions doc/release_notes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ There have been breaking changes, very strictly speaking.
- Bump libsc under subdirectory sc/ to v2.8.6.
- Bump libtool library version of p4est and libsc to 3:0:0.
- Enhance CMake build script in accordance with changes under sc/.
- Add CMake flag to turn off the examples build

### Documentation

Expand Down

0 comments on commit 454a1c1

Please sign in to comment.