mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Cmake build: Define LYX_USE_CXX11 iff using c++11 extensions after commit 329eae5605
.
This commit is contained in:
parent
a87f0bffda
commit
a911b1cc65
@ -68,6 +68,9 @@
|
|||||||
// use GNU libstdc++ with C++11 ABI
|
// use GNU libstdc++ with C++11 ABI
|
||||||
#cmakedefine USE_GLIBCXX_CXX11_ABI 1
|
#cmakedefine USE_GLIBCXX_CXX11_ABI 1
|
||||||
|
|
||||||
|
// use GNU c++11 extensions
|
||||||
|
#cmakedefine LYX_USE_CXX11 1
|
||||||
|
|
||||||
#cmakedefine Z_PREFIX 1
|
#cmakedefine Z_PREFIX 1
|
||||||
|
|
||||||
${Include_used_spellchecker}
|
${Include_used_spellchecker}
|
||||||
|
@ -88,6 +88,7 @@ FOREACH(FLAG ${CXX11_FLAG_CANDIDATES})
|
|||||||
IF(CXX11_FLAG_DETECTED)
|
IF(CXX11_FLAG_DETECTED)
|
||||||
SET(CXX11_FLAG "${FLAG}")
|
SET(CXX11_FLAG "${FLAG}")
|
||||||
message(STATUS "CXX11_FLAG_DETECTED = \"${FLAG}\"")
|
message(STATUS "CXX11_FLAG_DETECTED = \"${FLAG}\"")
|
||||||
|
set(LYX_USE_CXX11 1)
|
||||||
BREAK()
|
BREAK()
|
||||||
ENDIF()
|
ENDIF()
|
||||||
ENDFOREACH()
|
ENDFOREACH()
|
||||||
|
Loading…
Reference in New Issue
Block a user