You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kvrocks.apache.org by ti...@apache.org on 2022/09/06 16:28:49 UTC
[incubator-kvrocks] branch unstable updated: Fix CMake policy CMP0135 (#827)
This is an automated email from the ASF dual-hosted git repository.
tison pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/incubator-kvrocks.git
The following commit(s) were added to refs/heads/unstable by this push:
new 5639762 Fix CMake policy CMP0135 (#827)
5639762 is described below
commit 56397623624e2532e1da99017d2fd2665de743ca
Author: Aleks Lozovyuk <al...@gmail.com>
AuthorDate: Tue Sep 6 19:28:42 2022 +0300
Fix CMake policy CMP0135 (#827)
* Update utils.cmake
Set an DOWNLOAD_EXTRACT_TIMESTAMP options to new behavior (by cmake policy CMP0135)
* Update utils.cmake
Revert
* Create policy.cmake
Add policy macro and fix warning about DOWNLOAD_EXTRACT_TIMESTAMP
* Update CMakeLists.txt
Run kvrocks cmake policy macro
* Update policy.cmake
Fix missing license header
* Update CMakeLists.txt
Fix (remove dedicated policy.cmake file)
* Delete policy.cmake
* Update CMakeLists.txt
---
CMakeLists.txt | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b6ffa0b..d453beb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -27,6 +27,10 @@ option(ASAN_WITH_LSAN "enable leak santinizer while address santinizer is enable
option(ENABLE_STATIC_LIBSTDCXX "link kvrocks with static library of libstd++ instead of shared library" ON)
option(USE_LUAJIT "use luaJIT instead of lua" ON)
+if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.24.0")
+ cmake_policy(SET CMP0135 NEW)
+endif()
+
set(DEPS_FETCH_PROXY "" CACHE STRING
"a template URL to proxy the traffic for fetching dependencies, e.g. with DEPS_FETCH_PROXY = https://some-proxy/,
https://example/some-dep.zip -> https://some-proxy/https://example/some-dep.zip")