Skip to content

Commit 67265e0

Browse files
committed
cmake: move global project definition to beginning
such that necessary cmake variables to detect Cygwin are defined when setting the C++ standard and we can distinguish.
1 parent 0ea2d8f commit 67265e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
cmake_minimum_required(VERSION 2.8.8)
22

3+
project(googletest-distribution)
4+
set(GOOGLETEST_VERSION 1.9.0)
5+
36
if (CMAKE_VERSION VERSION_LESS "3.1")
47
add_definitions(-std=c++11)
58
else()
@@ -12,9 +15,6 @@ if (POLICY CMP0048)
1215
cmake_policy(SET CMP0048 NEW)
1316
endif (POLICY CMP0048)
1417

15-
project(googletest-distribution)
16-
set(GOOGLETEST_VERSION 1.9.0)
17-
1818
enable_testing()
1919

2020
include(CMakeDependentOption)

0 commit comments

Comments
 (0)