From 1784d4ee2b8cc08f95e86a87840bbaa75111f649 Mon Sep 17 00:00:00 2001 From: Jacob Williams Date: Sun, 26 May 2024 08:32:01 -0500 Subject: [PATCH] restore old default behavior in cmake --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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()