From b68f1e769c7a846b10c9ba2f604fc4d0532ecc95 Mon Sep 17 00:00:00 2001 From: Manuel VIVES Date: Wed, 2 Aug 2017 21:03:13 -0400 Subject: [PATCH] Fix policy issue with old cmakes #1169 --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7fceb399..f7fb65e1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,9 @@ cmake_minimum_required(VERSION 2.6.4) -cmake_policy(SET CMP0048 NEW) +if (policy CMP0048) + cmake_policy(SET CMP0048 NEW) +endif (policy CMP0048) + project( googletest-distribution ) enable_testing()