Cmake build: Define LYX_USE_CXX11 iff using c++11 extensions after commit 329eae5605.

This commit is contained in:
Kornel Benko 2015-05-20 12:07:41 +02:00
parent a87f0bffda
commit a911b1cc65
2 changed files with 4 additions and 0 deletions

View File

@ -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}

View File

@ -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()