]> git.lyx.org Git - features.git/commitdiff
Cmake build: Improve checks for stdlib-debug
authorKornel Benko <kornel@lyx.org>
Sat, 11 Jul 2020 10:43:17 +0000 (12:43 +0200)
committerKornel Benko <kornel@lyx.org>
Sat, 11 Jul 2020 10:43:17 +0000 (12:43 +0200)
CMakeLists.txt
development/cmake/ConfigureChecks.cmake

index 7fbdcc44fb3e66548fc7858d3cf88481b182b5f6..e208feb2e5c2fb8a21140f13c6b172c9fbb272ee 100644 (file)
@@ -926,12 +926,12 @@ else()
       message(STATUS "Boost found")
       message(STATUS "Boost-libs = ${Boost_LIBRARIES}")
       set(Lyx_Boost_Libraries ${Boost_LIBRARIES})
-      if (LYX_STDLIB_DEBUG)
+      if (LYX_STDLIB_DEBUG OR LYX_DEBUG_GLIBC OR LYX_DEBUG_GLIBC_PEDANTIC)
        # Comment from  Jean-Marc Lasgouttes:
        # In general, system boost libraries are incompatible with
        # the use of stdlib-debug in libstdc++. See ticket #9736 for
        # details.
-       message(WARNING "Compiling LyX with stdlib-debug and system boost libraries may lead to crashes. Consider using '-DLYX_STDLIB_DEBUG=OFF' or using '-DLYX_EXTERNAL_BOOST=OFF'")
+       message(FATAL_ERROR "Compiling LyX with stdlib-debug and system boost libraries may lead to crashes. Consider using '-DLYX_STDLIB_DEBUG=OFF -DLYX_DEBUG_GLIBC=OFF -DLYX_DEBUG_GLIBC_PEDANTIC=OFF' or using '-DLYX_EXTERNAL_BOOST=OFF'")
       endif()
     else()
       message(FATAL_ERROR "Boost not found" ${Boost_ERROR_REASON})
index ea74b1e198c2067d9f59fbc21372372190e40c90..06c9a445bad545f13296a7216a60f1874ce72f14 100644 (file)
@@ -98,8 +98,8 @@ if(HUNSPELL_FOUND)
 
   message(STATUS "HAVE_HUNSPELL_CXXABI = ${HAVE_HUNSPELL_CXXABI}")
   #message(STATUS "LOG2 = ${LOG2}")
-  if(LYX_EXTERNAL_HUNSPELL AND LYX_STDLIB_DEBUG AND HAVE_HUNSPELL_CXXABI)
-    message(WARNING "Compiling LyX with stdlib-debug and system hunspell libraries may lead to crashes. Consider using -DLYX_STDLIB_DEBUG=OFF or -DLYX_EXTERNAL_HUNSPELL=OFF.")
+  if(LYX_EXTERNAL_HUNSPELL AND (LYX_STDLIB_DEBUG OR LYX_DEBUG_GLIBC OR LYX_DEBUG_GLIBC_PEDANTIC) AND HAVE_HUNSPELL_CXXABI)
+    message(FATAL_ERROR "Compiling LyX with stdlib-debug and system hunspell libraries may lead to crashes. Consider using '-DLYX_STDLIB_DEBUG=OFF -DLYX_DEBUG_GLIBC=OFF -DLYX_DEBUG_GLIBC_PEDANTIC=OFF' or -DLYX_EXTERNAL_HUNSPELL=OFF.")
   endif()
 endif()