Suppress CMake policy warning (CMP0048)
As suggested in #2150.
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fa9d63e..3fae2f9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -3,6 +3,10 @@
cmake_minimum_required(VERSION 2.8.8)
+if (POLICY CMP0048)
+ cmake_policy(SET CMP0048 NEW)
+endif (POLICY CMP0048)
+
project(googletest-distribution)
set(GOOGLETEST_VERSION 1.9.0)
@@ -16,10 +20,6 @@
endif()
endif()
-if (POLICY CMP0048)
- cmake_policy(SET CMP0048 NEW)
-endif (POLICY CMP0048)
-
enable_testing()
include(CMakeDependentOption)