-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Make CMake 3.14 a minimum requirement Requiring CMake 3.14 as a minimum guarantees some features that will make the code simpler. * Install namelink only in dev component * Populate INTERFACE_INCLUDE_DIRECTORIES INCLUDES DESTINATION is a special form that adds the listed directories to the targets in the same install(TARGETS) command call at install time. This is preferable to the $<INSTALL_INTERFACE:...> generator expression. * Assign every install rule to a component * Make component names unique If every project assigns themselves to the same components, then it becomes impossible to tell individual packages apart. See Craig Scott's presentation on this bit: https://youtu.be/m0DwB4OvDXk?t=2168 * Use a cache variable for CMake package location Making the location of the CMake package config files configurable allows package managers and distro package maintainers to trivially redirect their location to another location. * Add the ARCH_INDEPENDENT parameter This option is useful for header only libraries that do not depend on architecture specifics. The parameter defaults to YES to disable target platform architecture check for package resolution. * Simplify the package config file The file never used or provided package components, so it is pointless to use configure_package_config_file. Co-authored-by: friendlyanon <[email protected]>
- Loading branch information
1 parent
27f4ead
commit a604977
Showing
3 changed files
with
54 additions
and
19 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,5 +1,3 @@ | ||
@PACKAGE_INIT@ | ||
|
||
include(CMakeFindDependencyMacro) | ||
|
||
string(REGEX MATCHALL "[^;]+" SEPARATE_DEPENDENCIES "@PROJECT_DEPENDENCIES@") | ||
|
@@ -10,4 +8,3 @@ foreach(dependency ${SEPARATE_DEPENDENCIES}) | |
endforeach() | ||
|
||
include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]") | ||
check_required_components("@PROJECT_NAME@") |
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