-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GHI #18 CMake fixes and introduction of
package_name
- introduce `package_name` and `target_name` variables and use these where appropriate (i.e. without confusing reviewers about what values some variables hold) - replace `InstallConfig.cmake` with `in/patomic-config.cmake.in` - only include targets file in config file if target isn't already defined - add summary table in `OptionVariables.cmake` - change PATH cache variables to STRING so that there aren't issues if they're set on the command line - changed installed CMake names to kebab-case
- Loading branch information
Showing
5 changed files
with
110 additions
and
50 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 was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# init @ variables before doing anything else | ||
@PACKAGE_INIT@ | ||
|
||
# no dependencies or special setup | ||
|
||
# we cannot modify an existing IMPORT target | ||
if(NOT TARGET patomic::patomic) | ||
|
||
# import targets | ||
include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]") | ||
|
||
endif() |