Skip to content

Commit 97d8c47

Browse files
committed
Suppress CMake policy warning (CMP0048)
As suggested in #2150.
1 parent f5edb4f commit 97d8c47

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33

44
cmake_minimum_required(VERSION 2.8.8)
55

6+
if (POLICY CMP0048)
7+
cmake_policy(SET CMP0048 NEW)
8+
endif (POLICY CMP0048)
9+
610
project(googletest-distribution)
711
set(GOOGLETEST_VERSION 1.9.0)
812

@@ -16,10 +20,6 @@ else()
1620
endif()
1721
endif()
1822

19-
if (POLICY CMP0048)
20-
cmake_policy(SET CMP0048 NEW)
21-
endif (POLICY CMP0048)
22-
2323
enable_testing()
2424

2525
include(CMakeDependentOption)

0 commit comments

Comments
 (0)