From 67265e07067758f51db6fd9296de02c16b1f9873 Mon Sep 17 00:00:00 2001 From: Matthias Grob Date: Mon, 4 Feb 2019 18:59:51 +0000 Subject: [PATCH] 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. --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index be14229e..c6775ef3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,8 @@ cmake_minimum_required(VERSION 2.8.8) +project(googletest-distribution) +set(GOOGLETEST_VERSION 1.9.0) + if (CMAKE_VERSION VERSION_LESS "3.1") add_definitions(-std=c++11) else() @@ -12,9 +15,6 @@ if (POLICY CMP0048) cmake_policy(SET CMP0048 NEW) endif (POLICY CMP0048) -project(googletest-distribution) -set(GOOGLETEST_VERSION 1.9.0) - enable_testing() include(CMakeDependentOption)