This is an automated email from the ASF dual-hosted git repository.

dongjoon pushed a commit to branch branch-1.7
in repository https://gitbox.apache.org/repos/asf/orc.git


The following commit(s) were added to refs/heads/branch-1.7 by this push:
     new e6a953225 ORC-1268: Set CMP0135 policy for CMake 3.24+
e6a953225 is described below

commit e6a95322505862486be59e466477c4446da04d50
Author: William Hyun <[email protected]>
AuthorDate: Tue Sep 13 08:45:05 2022 -0700

    ORC-1268: Set CMP0135 policy for CMake 3.24+
    
    ### What changes were proposed in this pull request?
    This PR aims to set the CMP0135 policy for CMake 3.24+.
    
    ### Why are the changes needed?
    CMake 3.24+ adds CMP0135 which starts to complain at 
DOWNLOAD_EXTRACT_TIMESTAMP.
    To disable the warning, we need to set the policy explicitly.
    
    https://cmake.org/cmake/help/latest/policy/CMP0135.html
    
    ### How was this patch tested?
    Manually.
    
    Closes #1249 from williamhyun/CMP0135.
    
    Authored-by: William Hyun <[email protected]>
    Signed-off-by: Dongjoon Hyun <[email protected]>
    (cherry picked from commit 791fee0bf5677a079a06720433c77b5ff2233dea)
    Signed-off-by: Dongjoon Hyun <[email protected]>
---
 CMakeLists.txt | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3d1b700c1..774d135a0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -14,6 +14,9 @@ cmake_minimum_required (VERSION 2.8.12)
 if (POLICY CMP0048)
     cmake_policy(SET CMP0048 NEW)
 endif ()
+if (POLICY CMP0135)
+    cmake_policy(SET CMP0135 NEW)
+endif ()
 
 project(ORC C CXX)
 

Reply via email to