diff --git a/CMakeLists.txt b/CMakeLists.txt index 816d711640..602ad9fb01 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,8 +12,8 @@ cmake_minimum_required ( VERSION 3.18 FATAL_ERROR ) option (JSONFORTRAN_ENABLE_DOC_GENERATION "Enable doc generation" OFF) -option (JSONFORTRAN_ENABLE_TESTS "Enable tests" OFF) -option (JSONFORTRAN_STATIC_LIBRARY_ONLY "Generate only static library" ON) +option (JSONFORTRAN_ENABLE_TESTS "Enable tests" On) +option (JSONFORTRAN_STATIC_LIBRARY_ONLY "Generate only static library" OFF) # Use MSVS folders to organize projects on windows set_property(GLOBAL PROPERTY USE_FOLDERS ON) @@ -180,6 +180,7 @@ else() add_library ( ${LIB_NAME}-static STATIC ${JF_LIB_SRCS} ) else() add_library ( ${LIB_NAME} SHARED ${JF_LIB_SRCS} ) + add_library ( ${LIB_NAME}-static STATIC ${JF_LIB_SRCS} ) endif() endif()