Commit 67265e07 authored by Matthias Grob's avatar Matthias Grob
Browse files

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.
parent 0ea2d8f8
cmake_minimum_required(VERSION 2.8.8) cmake_minimum_required(VERSION 2.8.8)
project(googletest-distribution)
set(GOOGLETEST_VERSION 1.9.0)
if (CMAKE_VERSION VERSION_LESS "3.1") if (CMAKE_VERSION VERSION_LESS "3.1")
add_definitions(-std=c++11) add_definitions(-std=c++11)
else() else()
...@@ -12,9 +15,6 @@ if (POLICY CMP0048) ...@@ -12,9 +15,6 @@ if (POLICY CMP0048)
cmake_policy(SET CMP0048 NEW) cmake_policy(SET CMP0048 NEW)
endif (POLICY CMP0048) endif (POLICY CMP0048)
project(googletest-distribution)
set(GOOGLETEST_VERSION 1.9.0)
enable_testing() enable_testing()
include(CMakeDependentOption) include(CMakeDependentOption)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment