Skip to content

Commit

Permalink
#1807: revert to previous custom gtest CMakeLists while using 1.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
stmcgovern committed May 25, 2022
1 parent edcaa2d commit 62cad70
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/extern/googletest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ endif (POLICY CMP0048)
project(googletest-distribution)
set(GOOGLETEST_VERSION 1.11.0)

if (CMAKE_VERSION VERSION_GREATER "3.0.2")
if(NOT CYGWIN AND NOT MSYS AND NOT ${CMAKE_SYSTEM_NAME} STREQUAL QNX)
if (CMAKE_VERSION VERSION_LESS "3.1")
add_definitions(-std=c++11)
else()
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
if(NOT CYGWIN)
set(CMAKE_CXX_EXTENSIONS OFF)
endif()
endif()
Expand All @@ -30,3 +34,4 @@ if(BUILD_GMOCK)
else()
add_subdirectory( googletest )
endif()

0 comments on commit 62cad70

Please sign in to comment.