From 97d8c47df92b7514dc33d361c21a4d8965f10954 Mon Sep 17 00:00:00 2001 From: Matthijs Brobbel Date: Tue, 28 May 2019 11:06:26 +0200 Subject: [PATCH] Suppress CMake policy warning (CMP0048) As suggested in #2150. --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fa9d63ed..3fae2f96 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 @@ else() endif() endif() -if (POLICY CMP0048) - cmake_policy(SET CMP0048 NEW) -endif (POLICY CMP0048) - enable_testing() include(CMakeDependentOption)