X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=development%2Fcmake%2Fmodules%2FFindEnchant.cmake;h=d7548a84fc68bb5728c12dd2df0758f38cc8e4cd;hb=9dd695b17adfd47a35ea49b9c19cf5984d2d68be;hp=d4164b6ffcff23f8441894e074f9e4f4f577e61a;hpb=fdc2f0c78d498de92ebc8828002c43a64ef3b9e7;p=lyx.git diff --git a/development/cmake/modules/FindEnchant.cmake b/development/cmake/modules/FindEnchant.cmake index d4164b6ffc..d7548a84fc 100644 --- a/development/cmake/modules/FindEnchant.cmake +++ b/development/cmake/modules/FindEnchant.cmake @@ -14,21 +14,9 @@ else() /opt/local/include/enchant) endif() -if (ENCHANT_LIBRARY AND ENCHANT_INCLUDE_DIR) - set(ENCHANT_FOUND TRUE) - 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)