mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 08:20:18 -06:00
FindJPEG use NAMES_PER_DIR
Signed-off-by: Sibi Siddharthan <sibisiddharthan.github@gmail.com>
This commit is contained in:
@@ -58,8 +58,8 @@ foreach(name ${jpeg_names})
|
||||
endforeach()
|
||||
|
||||
if(NOT JPEG_LIBRARY)
|
||||
find_library(JPEG_LIBRARY_RELEASE NAMES ${jpeg_names})
|
||||
find_library(JPEG_LIBRARY_DEBUG NAMES ${jpeg_names_debug})
|
||||
find_library(JPEG_LIBRARY_RELEASE NAMES ${jpeg_names} NAMES_PER_DIR)
|
||||
find_library(JPEG_LIBRARY_DEBUG NAMES ${jpeg_names_debug} NAMES_PER_DIR)
|
||||
include(${CMAKE_CURRENT_LIST_DIR}/SelectLibraryConfigurations.cmake)
|
||||
select_library_configurations(JPEG)
|
||||
mark_as_advanced(JPEG_LIBRARY_RELEASE JPEG_LIBRARY_DEBUG)
|
||||
|
||||
Reference in New Issue
Block a user