Skip to content

Commit 9eaa63f

Browse files
committed
Adds options to cmake
1 parent 481d793 commit 9eaa63f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -236,11 +236,11 @@ set_target_properties ( ${LIB_NAME}
236236
# Build the documentation with FORD
237237
#-------------------------------------
238238
if (JSONFORTRAN_ENABLE_DOC_GENERATION)
239-
set(SKIP_DOC_GEN FALSE)
239+
set(SKIP_DOC_GEN FALSE CACHE BOOL "Disable building the API documentation with FORD")
240+
else ()
241+
set(SKIP_DOC_GEN TRUE CACHE BOOL "Disable building the API documentation with FORD" )
240242
endif ()
241243

242-
set ( SKIP_DOC_GEN FALSE CACHE BOOL
243-
"Disable building the API documentation with FORD" )
244244
if ( NOT SKIP_DOC_GEN )
245245
find_program ( FORD ford )
246246
if ( FORD ) # Found
@@ -314,10 +314,10 @@ endif ()
314314
# Handle test related stuff
315315
#--------------------------
316316
if (JSONFORTRAN_ENABLE_TESTS)
317-
set (ENABLE_TESTS FALSE)
317+
set ( ENABLE_TESTS TRUE CACHE BOOL "Enable the JSON-Fortran tests." )
318+
else ()
319+
set ( ENABLE_TESTS FALSE CACHE BOOL "Enable the JSON-Fortran tests." )
318320
endif ()
319-
set ( ENABLE_TESTS TRUE CACHE BOOL
320-
"Enable the JSON-Fortran tests." )
321321

322322
#---------------------------------------------------------------------
323323
# Add some tests to ensure that the software is performing as expected

0 commit comments

Comments
 (0)