You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2024/11/19 14:08:54 UTC
(opendal) branch main updated: fix(bindings/cpp): remove the warning of CMP0135 (#5346)
This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git
The following commit(s) were added to refs/heads/main by this push:
new 9b5573357 fix(bindings/cpp): remove the warning of CMP0135 (#5346)
9b5573357 is described below
commit 9b55733571c944ee86e9fe50682f878ab9b2c41d
Author: Twice <tw...@apache.org>
AuthorDate: Tue Nov 19 22:08:48 2024 +0800
fix(bindings/cpp): remove the warning of CMP0135 (#5346)
---
bindings/cpp/CMakeLists.txt | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/bindings/cpp/CMakeLists.txt b/bindings/cpp/CMakeLists.txt
index b2f232c1d..2762a1430 100644
--- a/bindings/cpp/CMakeLists.txt
+++ b/bindings/cpp/CMakeLists.txt
@@ -16,6 +16,13 @@
# under the License.
cmake_minimum_required(VERSION 3.22)
+
+# CMP0135: set the timestamps of all extracted contents
+# to the time of the extraction in FetchContent
+if (POLICY CMP0135)
+ cmake_policy(SET CMP0135 NEW)
+endif()
+
project(opendal-cpp LANGUAGES CXX)
include(FetchContent)