mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-28 20:45:47 +00:00
Cmake build: Adapt detection of C++11 mode to automake
This commit is contained in:
parent
67385e69fc
commit
46d2344902
@ -70,7 +70,11 @@
|
||||
|
||||
// use GNU c++11 extensions
|
||||
#cmakedefine LYX_USE_CXX11 1
|
||||
|
||||
#ifndef LYX_USE_CXX11
|
||||
#if __cplusplus >= 201103L || defined(__GXX_EXPERIMENTAL_CXX0X__)
|
||||
#error "Conflicting defines of LYX_USE_CXX11"
|
||||
#endif
|
||||
#endif
|
||||
#cmakedefine Z_PREFIX 1
|
||||
|
||||
${Include_used_spellchecker}
|
||||
|
@ -35,11 +35,11 @@ INCLUDE(CheckCXXSourceCompiles)
|
||||
INCLUDE(FindPackageHandleStandardArgs)
|
||||
|
||||
if (CMAKE_CXX_COMPILER_ID MATCHES "^[cC]lang$")
|
||||
set(CXX11_FLAG_CANDIDATES "--std=c++11")
|
||||
set(CXX11_FLAG_CANDIDATES "--std=c++11 -Wno-deprecated-register")
|
||||
else()
|
||||
set(CXX11_FLAG_CANDIDATES
|
||||
"--std=gnu++11"
|
||||
"--std=c++11"
|
||||
"--std=gnu++11"
|
||||
"--std=gnu++0x"
|
||||
)
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user