Cmake build: Adapt use of c++11 for cygwin too.

Change done according to commit 864a4db26b
This commit is contained in:
Kornel Benko 2015-09-09 14:45:55 +02:00
parent 864a4db26b
commit 8c3dbe19b6

View File

@ -37,11 +37,15 @@ INCLUDE(FindPackageHandleStandardArgs)
if (CMAKE_CXX_COMPILER_ID MATCHES "^[cC]lang$")
set(CXX11_FLAG_CANDIDATES "--std=c++11 -Wno-deprecated-register")
else()
set(CXX11_FLAG_CANDIDATES
"--std=c++11"
"--std=gnu++11"
"--std=gnu++0x"
)
if (CYGWIN)
set(CXX11_FLAG_CANDIDATES "--std=gnu++11")
else()
set(CXX11_FLAG_CANDIDATES
"--std=c++11"
"--std=gnu++11"
"--std=gnu++0x"
)
endif()
endif()
# sample openmp source code to test