diff options
author | Gereon Kremer <gereon.kremer@cs.rwth-aachen.de> | 2021-04-01 20:20:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-01 18:20:53 +0000 |
commit | 3f4b33522bd04b509b73267550d24c44e61998ce (patch) | |
tree | 8065d0d2c20ec8d4005880d0565589efd3dc210b /cmake/deps-helper.cmake | |
parent | 05a53a2ac405bcd18a84024247145f161809c3b0 (diff) |
Refactor CLN dependency & Cleanup (#6251)
This PR migrates CLN to a new Find script and adds the possibility to install CLN if not found in the system.
Also, it does a bit of cleanup.
Diffstat (limited to 'cmake/deps-helper.cmake')
-rw-r--r-- | cmake/deps-helper.cmake | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/cmake/deps-helper.cmake b/cmake/deps-helper.cmake index 4b88d62ce..4de54e9ea 100644 --- a/cmake/deps-helper.cmake +++ b/cmake/deps-helper.cmake @@ -6,6 +6,22 @@ set(DEPS_BASE "${CMAKE_BINARY_DIR}/deps") # (and similar) to exist when target property is set. file(MAKE_DIRECTORY "${DEPS_BASE}/include/") +set(COMMON_EP_CONFIG + PREFIX ${DEPS_PREFIX} + LOG_DOWNLOAD ON + LOG_UPDATE ON + LOG_CONFIGURE ON + LOG_BUILD ON + LOG_INSTALL ON +) +if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.14") + set(COMMON_EP_CONFIG ${COMMON_EP_CONFIG} + LOG_PATCH ON + LOG_MERGED_STDOUTERR ON + LOG_OUTPUT_ON_FAILURE ON + ) +endif() + macro(check_system_version name) # find_package sets this variable when called with a version # https://cmake.org/cmake/help/latest/command/find_package.html#version-selection |