mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Cmake build: Adapt use of c++11 for cygwin too.
Change done according to commit 864a4db26b
This commit is contained in:
parent
864a4db26b
commit
8c3dbe19b6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user