diff options
author | Matthijs Brobbel <m1brobbel@gmail.com> | 2019-05-28 09:06:26 (GMT) |
---|---|---|
committer | Matthijs Brobbel <m1brobbel@gmail.com> | 2019-05-28 09:06:26 (GMT) |
commit | 97d8c47df92b7514dc33d361c21a4d8965f10954 (patch) | |
tree | 96754c0df2862114eb5dec62da86a04659a93b31 /CMakeLists.txt | |
parent | f5edb4f542e155c75bc4b516f227911d99ec167c (diff) | |
download | googletest-97d8c47df92b7514dc33d361c21a4d8965f10954.zip googletest-97d8c47df92b7514dc33d361c21a4d8965f10954.tar.gz googletest-97d8c47df92b7514dc33d361c21a4d8965f10954.tar.bz2 |
Suppress CMake policy warning (CMP0048)refs/pull/2264/head
As suggested in #2150.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 4 insertions, 4 deletions
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 @@ else() endif() endif() -if (POLICY CMP0048) - cmake_policy(SET CMP0048 NEW) -endif (POLICY CMP0048) - enable_testing() include(CMakeDependentOption) |