mirror of
https://github.com/google/googletest.git
synced 2025-04-05 21:45:03 +00:00
cmake: detect Cygwin which needs extensions to build
This commit is contained in:
parent
67265e0706
commit
f89253434f
1 changed files with 3 additions and 1 deletions
|
@ -8,7 +8,9 @@ if (CMAKE_VERSION VERSION_LESS "3.1")
|
|||
else()
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||
if(NOT CYGWIN)
|
||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if (POLICY CMP0048)
|
||||
|
|
Loading…
Add table
Reference in a new issue