Skip to content

Commit

Permalink
Merge pull request #330 from Goddard-Fortran-Ecosystem/hotfix/#329-su…
Browse files Browse the repository at this point in the history
…brepo-bugfixes

Fixes #329
  • Loading branch information
tclune authored Nov 15, 2021
2 parents 0a09db3 + fc36f6c commit d684684
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
10 changes: 6 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,12 @@ if (ENABLE_TESTS)
enable_testing()
add_custom_target(build-tests)

add_custom_target(tests
COMMAND ${CMAKE_CTEST_COMMAND}
EXCLUDE_FROM_ALL)
add_dependencies(tests build-tests)
if (NOT TARGET tests)
add_custom_target(tests
COMMAND ${CMAKE_CTEST_COMMAND}
EXCLUDE_FROM_ALL)
add_dependencies(tests build-tests)
endif ()

add_subdirectory (tests EXCLUDE_FROM_ALL)

Expand Down
6 changes: 4 additions & 2 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [4.2.2] - 2021-09-17
## [4.2.2] - 2021-11-15

### Fixed

- Fix for OpenMP handling in `PFUNITCmake.cmake`. If you skip OpenMP, it is no
longer a dependency
- Updated external modules that contain bugfixes.
- Fixed cmake logic that fails on enabling tests if using submodules.
- Allow GFortran to use longer lines. (Impacts some upstream use cases.)

### Changed

Expand Down
2 changes: 1 addition & 1 deletion cmake/GNU.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set (cpp "-cpp")
set (MISMATCH "-fallow-argument-mismatch")
set(opt "-O0")

set(common_flags "${cpp} ${opt} -ffree-line-length-512")
set(common_flags "${cpp} ${opt} -ffree-line-length-none")
if (CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER_EQUAL 10)
set (common_flags "${common_flags} ${MISMATCH}")
endif ()
Expand Down
2 changes: 1 addition & 1 deletion extern/fArgParse

0 comments on commit d684684

Please sign in to comment.