commit e43393d599f66d0aa567015a2d8f5d185c741fe6
Author: Kornel Benko <[email protected]>
Date:   Fri Sep 25 11:28:09 2015 +0200

    Cmake build: Give a warning when system boost and stdlib-debug are used 
together
    
    Follows commit a0f2cbd to fix bug #9736 for cmake build too.

diff --git a/CMakeLists.txt b/CMakeLists.txt
index f2b700c..8b32876 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -560,6 +560,13 @@ if(LYX_EXTERNAL_BOOST)
                message(STATUS "Boost found")
                message(STATUS "Boost-libs = ${Boost_LIBRARIES}")
                set(Lyx_Boost_Libraries ${Boost_LIBRARIES})
+               if (LYX_STDLIB_DEBUG)
+                       # 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'")
+               endif()
        else()
                message(FATAL_ERROR "Boost not found" ${Boost_ERROR_REASON})
        endif()

Reply via email to