From 0b9849d232fa3efc988ee71ce734759e78f6979b Mon Sep 17 00:00:00 2001 From: James Turner Date: Sun, 10 Jan 2021 13:32:59 +0000 Subject: [PATCH] CMake: remove .cmake extensions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These seem to break include()’s regular path searching, which is odd. --- CMakeModules/FindLibLZMA.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeModules/FindLibLZMA.cmake b/CMakeModules/FindLibLZMA.cmake index 3f9b5d3b..405e5213 100644 --- a/CMakeModules/FindLibLZMA.cmake +++ b/CMakeModules/FindLibLZMA.cmake @@ -45,7 +45,7 @@ find_path(LIBLZMA_INCLUDE_DIR lzma.h ) if(NOT LIBLZMA_LIBRARY) find_library(LIBLZMA_LIBRARY_RELEASE NAMES lzma liblzma NAMES_PER_DIR PATH_SUFFIXES lib) find_library(LIBLZMA_LIBRARY_DEBUG NAMES lzmad liblzmad NAMES_PER_DIR PATH_SUFFIXES lib) - include(SelectLibraryConfigurations.cmake) + include(SelectLibraryConfigurations) select_library_configurations(LIBLZMA) else() file(TO_CMAKE_PATH "${LIBLZMA_LIBRARY}" LIBLZMA_LIBRARY) @@ -66,7 +66,7 @@ endif() # it can be found in http://tukaani.org/xz/ # Avoid using old codebase if (LIBLZMA_LIBRARY) - include(CheckLibraryExists.cmake) + include(CheckLibraryExists) set(CMAKE_REQUIRED_QUIET_SAVE ${CMAKE_REQUIRED_QUIET}) set(CMAKE_REQUIRED_QUIET ${LibLZMA_FIND_QUIETLY}) if(NOT LIBLZMA_LIBRARY_RELEASE AND NOT LIBLZMA_LIBRARY_DEBUG) @@ -83,7 +83,7 @@ if (LIBLZMA_LIBRARY) set(CMAKE_REQUIRED_QUIET ${CMAKE_REQUIRED_QUIET_SAVE}) endif () -include(FindPackageHandleStandardArgs.cmake) +include(FindPackageHandleStandardArgs) find_package_handle_standard_args(LibLZMA REQUIRED_VARS LIBLZMA_LIBRARY LIBLZMA_INCLUDE_DIR LIBLZMA_HAS_AUTO_DECODER