+if (LYX_ENABLE_VALGRIND_TESTS)
+ find_program(VALGRIND_EXECUTABLE "valgrind")
+ if (NOT VALGRIND_EXECUTABLE)
+ message(FATAL_ERROR "Cannot use valgrind tests, executable valgrind is missing. Please disable LYX_ENABLE_VALGRIND_TESTS")
+ endif()
+endif()
+if (LYX_DEBUG_GLIBC OR LYX_DEBUG_GLIBC_PEDANTIC OR LYX_STDLIB_DEBUG)
+ if (LYX_EXTERNAL_BOOST)
+ message(FATAL_ERROR "Using external boost not compatible with debug mode for stdlib")
+ endif()
+endif()