find_library(ENCHANT_LIBRARY "libenchant")
find_path(ENCHANT_INCLUDE_DIR "enchant++.h")
else()
- find_library(ENCHANT_LIBRARY "enchant" "/usr/local/lib" "/usr/lib")
- find_path(ENCHANT_INCLUDE_DIR "enchant++.h" PATHS /usr/local/include /usr/local/include/enchant /usr/include /usr/include/enchant)
+ find_library(ENCHANT_LIBRARY "enchant" "/usr/local/lib" "/usr/lib" "/usr/local/lib" "/opt/local/lib")
+ find_path(ENCHANT_INCLUDE_DIR "enchant++.h" PATHS /usr/local/include /usr/local/include/enchant /usr/include /usr/include/enchant /opt/local/include/enchant)
endif()
if (ENCHANT_LIBRARY AND ENCHANT_INCLUDE_DIR)
set(ENCHANT_FOUND TRUE)
# Not sure if it works for all non-msvc compilers
include(PCHSupport_26)
if (MSVC)
- option(disable-pch "Disable precompiled headers" OFF)
+ option(disable-pch "Disable precompiled headers" ON)
else()
option(disable-pch "Disable precompiled headers" ON)
endif()
endif()
endif()
+option(debug_glibc "Enable libstdc++ debug mode" OFF)
+option(debug_glibc_pedantic "Enable libstdc++pedantic debug mode" OFF)
+
+if(debug_glibc)
+ set(_GLIBCXX_DEBUG 1)
+endif()
+
+if(debug_glibc_pedantic)
+ set(_GLIBCXX_DEBUG_PEDANTIC 1)
+endif()
+
# compiler tests, config.h generation
if(MSVC AND NOT CONFIGURECHECKS)
configure_file(configCompiler.h.msvc ${CMAKE_BINARY_DIR}/configCompiler.h)