Skip to content

Commit

Permalink
restore old default behavior in cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwilliams committed May 26, 2024
1 parent f4d16cb commit 1784d4e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit 1784d4e

Please sign in to comment.