Skip to content

Commit 46dcb62

Browse files
Merge pull request #559 from jacobwilliams/558-cmake-hotfix
restore old default behavior in cmake
2 parents f4d16cb + cbd5c36 commit 46dcb62

File tree

6 files changed

+21
-7
lines changed

6 files changed

+21
-7
lines changed

.VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8.5.0
1+
8.5.1

CHANGELOG.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- [Change Log](#change-log)
66
- [Unreleased](#unreleased)
7+
- [8.5.1 (2024-05-26)](#851-2024-05-26)
78
- [8.5.0 (2024-05-25)](#850-2024-05-25)
89
- [8.4.0 (2024-03-06)](#840-2024-03-06)
910
- [8.3.0 (2022-05-07)](#830-2022-05-07)
@@ -47,7 +48,16 @@
4748

4849
### [Unreleased](https://github.com/jacobwilliams/json-fortran/tree/HEAD)
4950

50-
[Complete Changeset](https://github.com/jacobwilliams/json-fortran/compare/8.5.0...HEAD)
51+
[Complete Changeset](https://github.com/jacobwilliams/json-fortran/compare/8.5.1...HEAD)
52+
53+
### [8.5.1](https://github.com/jacobwilliams/json-fortran/tree/8.5.1) (2024-05-26)
54+
55+
[Complete Changeset](https://github.com/jacobwilliams/json-fortran/compare/8.5.0...8.5.1)
56+
or [Download v8.5.1](https://github.com/jacobwilliams/json-fortran/releases/tag/8.5.1)
57+
58+
**Bug Fixes:**
59+
60+
* Fixed a bug when setting `JSONFORTRAN_STATIC_LIBRARY_ONLY` to False. Also restored some of the original CMake settings from 8.4.0. Specifically, the tests are enabled by default, and both the shared and static libraries are built by default. [#558](https://github.com/jacobwilliams/json-fortran/issues/558) [#559](https://github.com/jacobwilliams/json-fortran/pull/559) ([jacobwilliams](https://github.com/jacobwilliams))
5161

5262
### [8.5.0](https://github.com/jacobwilliams/json-fortran/tree/8.5.0) (2024-05-25)
5363

CMakeLists.txt

+4-3
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)
@@ -40,7 +40,7 @@ include ( "cmake/checkOutOfSource.cmake" )
4040
#---------------------
4141
project (
4242
jsonfortran
43-
VERSION 8.5.0
43+
VERSION 8.5.1
4444
LANGUAGES Fortran
4545
)
4646

@@ -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

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ cmake_minimum_required ( VERSION 3.18 FATAL_ERROR )
142142
enable_language ( Fortran )
143143
project ( jf_test NONE )
144144
145-
find_package ( jsonfortran-${CMAKE_Fortran_COMPILER_ID} 8.5.0 REQUIRED )
145+
find_package ( jsonfortran-${CMAKE_Fortran_COMPILER_ID} 8.5.1 REQUIRED )
146146
147147
file ( GLOB JF_TEST_SRCS "src/tests/jf_test_*.F90" )
148148
foreach ( UNIT_TEST ${JF_TEST_SRCS} )

pages/releases/index.md

+3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ documentation from the documentation for official releases other than
2525
using the browser's back button. Feel free to bookmark this page, or
2626
the [main project page](|url|/index.html) for convenient navigation.
2727

28+
* [8.5.1](https://jacobwilliams.github.io/json-fortran/prev/8.5.1/index.html)
29+
([FORD](https://github.com/Fortran-FOSS-Programmers/ford) generated documentation)
30+
- [Download](https://github.com/jacobwilliams/json-fortran/releases/tag/8.5.1)
2831
* [8.5.0](https://jacobwilliams.github.io/json-fortran/prev/8.5.0/index.html)
2932
([FORD](https://github.com/Fortran-FOSS-Programmers/ford) generated documentation)
3033
- [Download](https://github.com/jacobwilliams/json-fortran/releases/tag/8.5.0)

src/json_module.F90

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ module json_module
7373

7474
implicit none
7575

76-
character(kind=json_CK,len=*),parameter,private :: version = '8.5.0'
76+
character(kind=json_CK,len=*),parameter,private :: version = '8.5.1'
7777
!! JSON-Fortran version.
7878
!!
7979
!!@note This string should match the one in the `.VERSION` file (which is used

0 commit comments

Comments
 (0)