Suppress CMake policy warning (CMP0048)

As suggested in #2150.
This commit is contained in:
Matthijs Brobbel 2019-05-28 11:06:26 +02:00
parent f5edb4f542
commit 97d8c47df9
No known key found for this signature in database
GPG Key ID: 551189F8515034D3

View File

@ -3,6 +3,10 @@
cmake_minimum_required(VERSION 2.8.8) cmake_minimum_required(VERSION 2.8.8)
if (POLICY CMP0048)
cmake_policy(SET CMP0048 NEW)
endif (POLICY CMP0048)
project(googletest-distribution) project(googletest-distribution)
set(GOOGLETEST_VERSION 1.9.0) set(GOOGLETEST_VERSION 1.9.0)
@ -16,10 +20,6 @@ else()
endif() endif()
endif() endif()
if (POLICY CMP0048)
cmake_policy(SET CMP0048 NEW)
endif (POLICY CMP0048)
enable_testing() enable_testing()
include(CMakeDependentOption) include(CMakeDependentOption)