mirror of
https://git.mirrors.martin98.com/https://github.com/google/googletest.git
synced 2025-08-11 08:18:59 +08:00
Activate GNU extensions in case of MSYS generator
This commit is contained in:
parent
78fdd6c00b
commit
20b8e7a1c8
@ -15,7 +15,7 @@ if (CMAKE_VERSION VERSION_LESS "3.1")
|
|||||||
else()
|
else()
|
||||||
set(CMAKE_CXX_STANDARD 11)
|
set(CMAKE_CXX_STANDARD 11)
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
if(NOT CYGWIN)
|
if(NOT CYGWIN AND NOT MSYS)
|
||||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user