]> git.lyx.org Git - lyx.git/blobdiff - development/cmake/modules/FindEnchant.cmake
Cmake build: Correct some installation paths
[lyx.git] / development / cmake / modules / FindEnchant.cmake
index 3abc2b6f47de049d82d05f58315faa660b18c7a1..d7548a84fc68bb5728c12dd2df0758f38cc8e4cd 100644 (file)
@@ -14,22 +14,9 @@ else()
                /opt/local/include/enchant)
 endif()
 
-if (ENCHANT_LIBRARY AND ENCHANT_INCLUDE_DIR)
-       set(ENCHANT_FOUND TRUE)
-       add_definitions(-DUSE_ENCHANT=1)
-       message(STATUS "Building with USE_ENCHANT")
-else()
-       message(STATUS "Enchant not found, building without enchant support")
-endif()
-
-
-# handle the QUIETLY and REQUIRED arguments and 
+# handle the QUIETLY and REQUIRED arguments and
 # set ENCHANT_FOUND to TRUE if all listed variables are TRUE
 include(FindPackageHandleStandardArgs)
 find_package_handle_standard_args(ENCHANT DEFAULT_MSG ENCHANT_LIBRARY ENCHANT_INCLUDE_DIR)
 
-if(Enchant_FIND_REQUIRED AND NOT ENCHANT_FOUND)
-       message(FATAL_ERROR "Could not find Enchant library")
-endif()
-
 mark_as_advanced(ENCHANT_LIBRARY ENCHANT_INCLUDE_DIR)