[LyX/master] Adjust the name of the cmake module lookup script for MYTHESLIB to match the casing of the variable name

Stephan Witt switt at lyx.org
Tue Aug 4 09:24:25 UTC 2020


commit 7d66e37eb20d312b91a398e860a2bc27fd996289
Author: Stephan Witt <switt at lyx.org>
Date:   Tue Aug 4 11:48:49 2020 +0200

    Adjust the name of the cmake module lookup script for MYTHESLIB to match the casing of the variable name
---
 development/cmake/modules/FindMYTHESLIB.cmake |   28 +++++++++++++++++++++++++
 development/cmake/modules/FindMyThesLIB.cmake |   28 -------------------------
 2 files changed, 28 insertions(+), 28 deletions(-)

diff --git a/development/cmake/modules/FindMYTHESLIB.cmake b/development/cmake/modules/FindMYTHESLIB.cmake
new file mode 100644
index 0000000..dca2450
--- /dev/null
+++ b/development/cmake/modules/FindMYTHESLIB.cmake
@@ -0,0 +1,28 @@
+#
+#  based on FindZLIB.cmake
+#  created 2009, Kornel Benko, <kornel.benko at berlin.de>
+#
+
+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 dca2450..0000000
--- a/development/cmake/modules/FindMyThesLIB.cmake
+++ /dev/null
@@ -1,28 +0,0 @@
-#
-#  based on FindZLIB.cmake
-#  created 2009, Kornel Benko, <kornel.benko at berlin.de>
-#
-
-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)


More information about the lyx-cvs mailing list