]> git.lyx.org Git - lyx.git/commitdiff
Adjust the name of the cmake module lookup script for MYTHESLIB to match the casing...
authorStephan Witt <switt@lyx.org>
Tue, 4 Aug 2020 09:48:49 +0000 (11:48 +0200)
committerStephan Witt <switt@lyx.org>
Tue, 4 Aug 2020 09:49:03 +0000 (11:49 +0200)
development/cmake/modules/FindMYTHESLIB.cmake [new file with mode: 0644]
development/cmake/modules/FindMyThesLIB.cmake [deleted file]

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