summaryrefslogtreecommitdiffstats
path: root/Modules/FindLibLZMA.cmake
diff options
context:
space:
mode:
authorChristian Pfeiffer <cpfeiffer@live.de>2017-12-18 02:34:49 (GMT)
committerChristian Pfeiffer <cpfeiffer@live.de>2017-12-18 02:34:49 (GMT)
commitde706fe0d47b8d6fd9ed269d6caedbbfb9b71258 (patch)
treef81e3329cb69e2c792a8b3c25806d396e2bb06c5 /Modules/FindLibLZMA.cmake
parent4549eed94706d20ebbb1e8187f5b028c7bd4aa2e (diff)
downloadCMake-de706fe0d47b8d6fd9ed269d6caedbbfb9b71258.zip
CMake-de706fe0d47b8d6fd9ed269d6caedbbfb9b71258.tar.gz
CMake-de706fe0d47b8d6fd9ed269d6caedbbfb9b71258.tar.bz2
FindLibLZMA: Add library name for Windows
Fixes: #17568
Diffstat (limited to 'Modules/FindLibLZMA.cmake')
-rw-r--r--Modules/FindLibLZMA.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindLibLZMA.cmake b/Modules/FindLibLZMA.cmake
index 8009bcf..d203eaf 100644
--- a/Modules/FindLibLZMA.cmake
+++ b/Modules/FindLibLZMA.cmake
@@ -23,7 +23,7 @@
# LIBLZMA_VERSION_STRING - version number as a string (ex: "5.0.3")
find_path(LIBLZMA_INCLUDE_DIR lzma.h )
-find_library(LIBLZMA_LIBRARY lzma)
+find_library(LIBLZMA_LIBRARY NAMES lzma liblzma)
if(LIBLZMA_INCLUDE_DIR AND EXISTS "${LIBLZMA_INCLUDE_DIR}/lzma/version.h")
file(STRINGS "${LIBLZMA_INCLUDE_DIR}/lzma/version.h" LIBLZMA_HEADER_CONTENTS REGEX "#define LZMA_VERSION_[A-Z]+ [0-9]+")