summaryrefslogtreecommitdiffstats
path: root/Modules/FindEXPAT.cmake
diff options
context:
space:
mode:
authorSibi Siddharthan <sibisiddharthan.github@gmail.com>2020-07-01 19:08:40 (GMT)
committerSibi Siddharthan <sibisiddharthan.github@gmail.com>2020-07-01 19:08:40 (GMT)
commit943bdc7fbd79ec93d8871806ff2d58c9f8a276ac (patch)
treebb984111c164f75578f5cbd22d17e50cf0092da7 /Modules/FindEXPAT.cmake
parent6c77c615325881c5710062175c319ecac60a59b0 (diff)
downloadCMake-943bdc7fbd79ec93d8871806ff2d58c9f8a276ac.zip
CMake-943bdc7fbd79ec93d8871806ff2d58c9f8a276ac.tar.gz
CMake-943bdc7fbd79ec93d8871806ff2d58c9f8a276ac.tar.bz2
FindEXPAT use NAMES_PER_DIR
Signed-off-by: Sibi Siddharthan <sibisiddharthan.github@gmail.com>
Diffstat (limited to 'Modules/FindEXPAT.cmake')
-rw-r--r--Modules/FindEXPAT.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindEXPAT.cmake b/Modules/FindEXPAT.cmake
index 15b419a..b0bb02a 100644
--- a/Modules/FindEXPAT.cmake
+++ b/Modules/FindEXPAT.cmake
@@ -38,7 +38,7 @@ pkg_check_modules(PC_EXPAT QUIET expat)
find_path(EXPAT_INCLUDE_DIR NAMES expat.h HINTS ${PC_EXPAT_INCLUDE_DIRS})
# Look for the library.
-find_library(EXPAT_LIBRARY NAMES expat libexpat HINTS ${PC_EXPAT_LIBRARY_DIRS})
+find_library(EXPAT_LIBRARY NAMES expat libexpat NAMES_PER_DIR HINTS ${PC_EXPAT_LIBRARY_DIRS})
if (EXPAT_INCLUDE_DIR AND EXISTS "${EXPAT_INCLUDE_DIR}/expat.h")
file(STRINGS "${EXPAT_INCLUDE_DIR}/expat.h" expat_version_str