Skip to content

Commit

Permalink
Fixes for cmake issue.
Browse files Browse the repository at this point in the history
- Possibly due to changes in recent CMakeitself.
  • Loading branch information
tclune committed Nov 15, 2021
1 parent cc5ac90 commit fc36f6c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 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
3 changes: 2 additions & 1 deletion ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Fix for OpenMP handling in `PFUNITCmake.cmake`. If you skip OpenMP, it is no
longer a dependency
- Allow GFortran to use longer lines. (Impacts some upstream use cases.)
- 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

0 comments on commit fc36f6c

Please sign in to comment.