-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is an attempt to solve the CMake errors reported in #130. It uses the new target_sources(FILE_SET) command to set the sources for the `flux` target, which will hopefully avoid the problems we've been seeing. It also adds a `flux::flux` alias target, which apparently is a good thing, although I don't know enough CMake to understand why. The FILE_SET usage means setting our cmake_minimum_required to 3.23, which is pretty new (March 2022) -- but still older than our oldest supported compiler (GCC 11.3, released April '22). I think the odds of someone using a cutting-edge compiler but an old cmake are pretty slim, so hopefully it won't be a problem.
- Loading branch information
Showing
2 changed files
with
25 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
@PACKAGE_INIT@ | ||
include("${CMAKE_CURRENT_LIST_DIR}/flux-targets.cmake") | ||
list(APPEND CMAKE_MODULE_PATH "@PACKAGE_cmakeModulesDir@") | ||
|
||
check_required_components(flux) |