-
Notifications
You must be signed in to change notification settings - Fork 963
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Export cpr targets via CMake standard packaging approach. * Export cpr cmake targets only if CPR_FORCE_USE_SYSTEM_CURL is set. Otherwise, we have to export libcurl targets and all deps of libcurl because it is built in-source. CMake is not very user-friendly when it comes to exporting and installing targets of in-source built dependencies. * Move GNUInstallDirs outside of if/else Co-authored-by: Mirza Avdic <[email protected]>
- Loading branch information
Showing
2 changed files
with
42 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
include(CMakeFindDependencyMacro) | ||
@PACKAGE_INIT@ | ||
|
||
find_dependency(CURL REQUIRED) | ||
|
||
include(${CMAKE_CURRENT_LIST_DIR}/cprTargets.cmake) | ||
|
||
check_required_components(cpr) |
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