-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve generation of CMake config files
* Update CMake config COMPATIBILITY to match SOVERSION * Use kebab-case instead of camelCase for CMake config file naming. This matches the project naming better. * Generate find_dependency() commands based on library dependencies at build time. This intentionally ignores the command line tools' dependencies. * Let CMake config file require CXX because isocodes_lookup, mcc_lookup, and (when using Boost) iso8859 require it.
- Loading branch information
Showing
4 changed files
with
51 additions
and
21 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
@PACKAGE_INIT@ | ||
|
||
include(CMakeFindDependencyMacro) | ||
get_property(languages GLOBAL PROPERTY ENABLED_LANGUAGES) | ||
if(NOT "CXX" IN_LIST languages) | ||
# Various components of emv-utils, like isocodes_lookup and mcc_lookup, | ||
# require CXX | ||
message(FATAL_ERROR "emv-utils requires CXX") | ||
endif() | ||
@EMV_UTILS_CONFIG_PACKAGE_DEPENDENCIES@ | ||
|
||
check_required_components(emv-utils) | ||
|
||
include("${CMAKE_CURRENT_LIST_DIR}/emv-utils-config-targets.cmake") | ||
|
||
include(FindPackageHandleStandardArgs) | ||
set(emv-utils_CONFIG ${CMAKE_CURRENT_LIST_FILE}) | ||
find_package_handle_standard_args(emv-utils CONFIG_MODE) |
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