File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -236,11 +236,11 @@ set_target_properties ( ${LIB_NAME}
236236# Build the documentation with FORD
237237#-------------------------------------
238238if (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" )
240242endif ()
241243
242- set ( SKIP_DOC_GEN FALSE CACHE BOOL
243- "Disable building the API documentation with FORD" )
244244if ( NOT SKIP_DOC_GEN )
245245 find_program ( FORD ford )
246246 if ( FORD ) # Found
@@ -314,10 +314,10 @@ endif ()
314314# Handle test related stuff
315315#--------------------------
316316if (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." )
318320endif ()
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
You can’t perform that action at this time.
0 commit comments