diff options
author | Sibi Siddharthan <sibisiddharthan.github@gmail.com> | 2020-07-01 19:14:08 (GMT) |
---|---|---|
committer | Sibi Siddharthan <sibisiddharthan.github@gmail.com> | 2020-07-01 19:14:08 (GMT) |
commit | 0d9d8dd054e26622ffdeb6c03870c35010d8885f (patch) | |
tree | a3b68651598696fe4792b58d8b8729596c88f47a /Modules/FindPNG.cmake | |
parent | e6908b65b4fc8c20f61e27a903bf0b925ead318b (diff) | |
download | CMake-0d9d8dd054e26622ffdeb6c03870c35010d8885f.zip CMake-0d9d8dd054e26622ffdeb6c03870c35010d8885f.tar.gz CMake-0d9d8dd054e26622ffdeb6c03870c35010d8885f.tar.bz2 |
FindPNG use NAMES_PER_DIR
Signed-off-by: Sibi Siddharthan <sibisiddharthan.github@gmail.com>
Diffstat (limited to 'Modules/FindPNG.cmake')
-rw-r--r-- | Modules/FindPNG.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/FindPNG.cmake b/Modules/FindPNG.cmake index f1fe89a..fd0e4e9 100644 --- a/Modules/FindPNG.cmake +++ b/Modules/FindPNG.cmake @@ -76,8 +76,8 @@ if(ZLIB_FOUND) # For compatibility with versions prior to this multi-config search, honor # any PNG_LIBRARY that is already specified and skip the search. if(NOT PNG_LIBRARY) - find_library(PNG_LIBRARY_RELEASE NAMES ${PNG_NAMES}) - find_library(PNG_LIBRARY_DEBUG NAMES ${PNG_NAMES_DEBUG}) + find_library(PNG_LIBRARY_RELEASE NAMES ${PNG_NAMES} NAMES_PER_DIR) + find_library(PNG_LIBRARY_DEBUG NAMES ${PNG_NAMES_DEBUG} NAMES_PER_DIR) include(${CMAKE_CURRENT_LIST_DIR}/SelectLibraryConfigurations.cmake) select_library_configurations(PNG) mark_as_advanced(PNG_LIBRARY_RELEASE PNG_LIBRARY_DEBUG) |