Activate GNU extensions in case of MSYS generator

This commit is contained in:
Ilya Kravchuk 2019-12-13 12:54:37 +03:00 committed by Ilia Kravchuk
parent 78fdd6c00b
commit 20b8e7a1c8

View File

@ -15,7 +15,7 @@ if (CMAKE_VERSION VERSION_LESS "3.1")
else()
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
if(NOT CYGWIN)
if(NOT CYGWIN AND NOT MSYS)
set(CMAKE_CXX_EXTENSIONS OFF)
endif()
endif()