Skip to content

Commit

Permalink
remove setting CMP0076 which left relative paths alone instead of cha…
Browse files Browse the repository at this point in the history
…nging them to absolute paths in target_sources()
  • Loading branch information
white238 committed Mar 1, 2024
1 parent 755814e commit 9ac60ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
3 changes: 2 additions & 1 deletion RELEASE-NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ The project release numbers follow [Semantic Versioning](http://semver.org/spec/
### Changed
- OpenMP target now uses a generator expression for Fortran flags instead of replacing flags in
Fortran targets created with BLT macros.

- Remove setting CMP0076 to OLD which left relative paths in `target_sources()` instead of altering
them to absolute paths.

## [Version 0.6.1] - Release date 2024-01-29

Expand Down
8 changes: 0 additions & 8 deletions SetupBLT.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,6 @@ if (NOT BLT_LOADED)
cmake_policy(SET CMP0074 NEW)
endif()

# New turns relative target_sources() paths to absolute
# Policy added in 3.13+
# NOTE: this will be deprecated eventually but NEW causes
# problems in header only libraries, OLD keeps current behavior
if(POLICY CMP0076)
cmake_policy(SET CMP0076 OLD)
endif()

################################
# Enable various find commands to look in non-default paths
################################
Expand Down

0 comments on commit 9ac60ad

Please sign in to comment.