Amend d7020ea: Add the warn when using system hunspell in stdlib-debug mode also for cmake

This commit is contained in:
Kornel Benko 2018-04-09 17:13:52 +02:00
parent d7020ea919
commit bda9e38ade

View File

@ -98,6 +98,9 @@ if(HUNSPELL_FOUND)
message(STATUS "HAVE_HUNSPELL_CXXABI = ${HAVE_HUNSPELL_CXXABI}") message(STATUS "HAVE_HUNSPELL_CXXABI = ${HAVE_HUNSPELL_CXXABI}")
#message(STATUS "LOG2 = ${LOG2}") #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.")
endif()
endif() endif()
#check_cxx_source_compiles( #check_cxx_source_compiles(