Merge pull request #2101 from MaEtUgR:fix-cmake-cygwin
PiperOrigin-RevId: 233096223
This commit is contained in:
commit
b68ec344bf
|
@ -1,20 +1,22 @@
|
||||||
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()
|
||||||
set(CMAKE_CXX_STANDARD 11)
|
set(CMAKE_CXX_STANDARD 11)
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
if(NOT CYGWIN)
|
||||||
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (POLICY CMP0048)
|
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)
|
||||||
|
|
|
@ -56,7 +56,6 @@ Google test has been used on a variety of platforms:
|
||||||
* MinGW
|
* MinGW
|
||||||
* Windows Mobile
|
* Windows Mobile
|
||||||
* Symbian
|
* Symbian
|
||||||
* PlatformIO
|
|
||||||
|
|
||||||
## Who Is Using Google Test? ##
|
## Who Is Using Google Test? ##
|
||||||
|
|
||||||
|
|
|
@ -2430,7 +2430,7 @@ could generate this report:
|
||||||
"failures": 1,
|
"failures": 1,
|
||||||
"errors": 0,
|
"errors": 0,
|
||||||
"time": "0.035s",
|
"time": "0.035s",
|
||||||
"timestamp": "2011-10-31T18:52:42Z",
|
"timestamp": "2011-10-31T18:52:42Z"
|
||||||
"name": "AllTests",
|
"name": "AllTests",
|
||||||
"testsuites": [
|
"testsuites": [
|
||||||
{
|
{
|
||||||
|
@ -2447,11 +2447,11 @@ could generate this report:
|
||||||
"classname": "",
|
"classname": "",
|
||||||
"failures": [
|
"failures": [
|
||||||
{
|
{
|
||||||
"message": "Value of: add(1, 1)\n Actual: 3\nExpected: 2",
|
"message": "Value of: add(1, 1)\x0A Actual: 3\x0AExpected: 2",
|
||||||
"type": ""
|
"type": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"message": "Value of: add(1, -1)\n Actual: 1\nExpected: 0",
|
"message": "Value of: add(1, -1)\x0A Actual: 1\x0AExpected: 0",
|
||||||
"type": ""
|
"type": ""
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -2463,7 +2463,7 @@ could generate this report:
|
||||||
"classname": ""
|
"classname": ""
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
}
|
||||||
{
|
{
|
||||||
"name": "LogicTest",
|
"name": "LogicTest",
|
||||||
"tests": 1,
|
"tests": 1,
|
||||||
|
@ -2517,3 +2517,4 @@ environment variable to `0`, or use the `--gtest_catch_exceptions=0` flag when
|
||||||
running the tests.
|
running the tests.
|
||||||
|
|
||||||
**Availability**: Linux, Windows, Mac.
|
**Availability**: Linux, Windows, Mac.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user