summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorGravatar Abseil Team <absl-team@google.com>2020-07-20 09:08:19 -0700
committerGravatar Andy Getz <durandal@google.com>2020-07-20 15:16:45 -0400
commit3c2bed2e77a8b77ce3092e3f75140dd21879bdba (patch)
treeed34c14b1d30d25fc166f52694d7a4223a023e67 /CMakeLists.txt
parentea8a689cf5e71f31f96af78859eccc11161fa36a (diff)
Export of internal Abseil changes
-- 763b4755cc65db94fb1d6c09655f77deee685698 by Evan Brown <ezb@google.com>: Rollback change getting rid of recursion in clear_and_delete(). PiperOrigin-RevId: 322156175 -- e430ae6970ae2e76357876449878033e3c72e734 by Greg Falcon <gfalcon@google.com>: fix build on P9 Import of https://github.com/abseil/abseil-cpp/pull/739 PiperOrigin-RevId: 321855200 -- 3076c5bf811a950e7f7914023434d4aa9c0fbbb0 by Derek Mauro <dmauro@google.com>: Check for the existence of CMake policies before using them Fixes #742 PiperOrigin-RevId: 321798698 GitOrigin-RevId: 763b4755cc65db94fb1d6c09655f77deee685698 Change-Id: I641e42f8bebe236b75f1bf1116a129c2ad9b2571
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt16
1 files changed, 12 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 54ce4994..bc195e04 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -22,16 +22,24 @@
cmake_minimum_required(VERSION 3.5)
# Compiler id for Apple Clang is now AppleClang.
-cmake_policy(SET CMP0025 NEW)
+if (POLICY CMP0025)
+ cmake_policy(SET CMP0025 NEW)
+endif (POLICY CMP0025)
# if command can use IN_LIST
-cmake_policy(SET CMP0057 NEW)
+if (POLICY CMP0057)
+ cmake_policy(SET CMP0057 NEW)
+endif (POLICY CMP0057)
# Project version variables are the empty string if version is unspecified
-cmake_policy(SET CMP0048 NEW)
+if (POLICY CMP0048)
+ cmake_policy(SET CMP0048 NEW)
+endif (POLICY CMP0048)
# option() honor variables
-cmake_policy(SET CMP0077 NEW)
+if (POLICY CMP0077)
+ cmake_policy(SET CMP0077 NEW)
+endif (POLICY CMP0077)
project(absl CXX)