We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07cf608 commit 777c4cbCopy full SHA for 777c4cb
CMakeLists.txt
@@ -12,8 +12,12 @@ project(Flibcpp VERSION 0.2.1 LANGUAGES CXX Fortran)
12
# OPTIONS
13
#---------------------------------------------------------------------------#
14
15
+if (FLIBCPP_DEV OR FLIBCPP_BUILD_EXAMPLES OR FLIBCPP_BUILD_TESTS)
16
+ set(_DEFAULT_BUILD_TESTING ON)
17
+endif()
18
+
19
option(BUILD_SHARED_LIBS "Build shared libraries" ON)
-option(BUILD_TESTING "Enable CTest" ${FLIBCPP_DEV})
20
+option(BUILD_TESTING "Enable CTest" ${_DEFAULT_BUILD_TESTING})
21
option(FLIBCPP_DEV "Default to using development-centered options" OFF)
22
option(FLIBCPP_BUILD_DOCS "Build documentation with Sphinx" ${FLIBCPP_DEV})
23
option(FLIBCPP_BUILD_EXAMPLES "Build examples" ON)
0 commit comments