Skip to content

Commit 1784d4e

Browse files
committed
restore old default behavior in cmake
1 parent f4d16cb commit 1784d4e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
cmake_minimum_required ( VERSION 3.18 FATAL_ERROR )
1313

1414
option (JSONFORTRAN_ENABLE_DOC_GENERATION "Enable doc generation" OFF)
15-
option (JSONFORTRAN_ENABLE_TESTS "Enable tests" OFF)
16-
option (JSONFORTRAN_STATIC_LIBRARY_ONLY "Generate only static library" ON)
15+
option (JSONFORTRAN_ENABLE_TESTS "Enable tests" On)
16+
option (JSONFORTRAN_STATIC_LIBRARY_ONLY "Generate only static library" OFF)
1717

1818
# Use MSVS folders to organize projects on windows
1919
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
@@ -180,6 +180,7 @@ else()
180180
add_library ( ${LIB_NAME}-static STATIC ${JF_LIB_SRCS} )
181181
else()
182182
add_library ( ${LIB_NAME} SHARED ${JF_LIB_SRCS} )
183+
add_library ( ${LIB_NAME}-static STATIC ${JF_LIB_SRCS} )
183184
endif()
184185
endif()
185186

0 commit comments

Comments
 (0)