From: Stephan Witt Date: Tue, 4 Aug 2020 09:48:49 +0000 (+0200) Subject: Adjust the name of the cmake module lookup script for MYTHESLIB to match the casing... X-Git-Tag: lyx-2.4.0dev-acb2ca7b~455 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=7d66e37eb2;p=lyx.git Adjust the name of the cmake module lookup script for MYTHESLIB to match the casing of the variable name --- diff --git a/development/cmake/modules/FindMYTHESLIB.cmake b/development/cmake/modules/FindMYTHESLIB.cmake new file mode 100644 index 0000000000..dca24502a4 --- /dev/null +++ b/development/cmake/modules/FindMYTHESLIB.cmake @@ -0,0 +1,28 @@ +# +# based on FindZLIB.cmake +# created 2009, Kornel Benko, +# + +set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true) + +if (MYTHESLIB_INCLUDE_DIR) + # Already in cache, be silent + set(MYTHESLIB_FIND_QUIETLY TRUE) +endif() + +set(MYTHES_H mythes.hxx) +find_path(MYTHESLIB_INCLUDE_DIR ${MYTHES_H} + /usr/include + /usr/local/include) + +set(POTENTIAL_MYTHES_LIBS mythes-1.2) + +find_library(MYTHESLIB_LIBRARY NAMES ${POTENTIAL_MYTHES_LIBS} + PATHS ${SYSTEM_LIB_DIRS} ) + +# handle the QUIETLY and REQUIRED arguments and set MYTHESLIB_FOUND to TRUE if +# all listed variables are TRUE +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(MYTHESLIB DEFAULT_MSG MYTHESLIB_LIBRARY MYTHESLIB_INCLUDE_DIR) + +mark_as_advanced(MYTHESLIB_LIBRARY MYTHESLIB_INCLUDE_DIR) diff --git a/development/cmake/modules/FindMyThesLIB.cmake b/development/cmake/modules/FindMyThesLIB.cmake deleted file mode 100644 index dca24502a4..0000000000 --- a/development/cmake/modules/FindMyThesLIB.cmake +++ /dev/null @@ -1,28 +0,0 @@ -# -# based on FindZLIB.cmake -# created 2009, Kornel Benko, -# - -set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true) - -if (MYTHESLIB_INCLUDE_DIR) - # Already in cache, be silent - set(MYTHESLIB_FIND_QUIETLY TRUE) -endif() - -set(MYTHES_H mythes.hxx) -find_path(MYTHESLIB_INCLUDE_DIR ${MYTHES_H} - /usr/include - /usr/local/include) - -set(POTENTIAL_MYTHES_LIBS mythes-1.2) - -find_library(MYTHESLIB_LIBRARY NAMES ${POTENTIAL_MYTHES_LIBS} - PATHS ${SYSTEM_LIB_DIRS} ) - -# handle the QUIETLY and REQUIRED arguments and set MYTHESLIB_FOUND to TRUE if -# all listed variables are TRUE -include(FindPackageHandleStandardArgs) -find_package_handle_standard_args(MYTHESLIB DEFAULT_MSG MYTHESLIB_LIBRARY MYTHESLIB_INCLUDE_DIR) - -mark_as_advanced(MYTHESLIB_LIBRARY MYTHESLIB_INCLUDE_DIR)