Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions conan.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,18 @@ macro(conan_cmake_run)
endforeach()
conan_basic_setup(${_setup_options})
endif()

foreach(LIB IN LISTS CONAN_LIBS)
find_library(FOUND_LIB ${LIB})
if(FOUND_LIB)
list(APPEND RESOLVED_CONAN_LIBS ${FOUND_LIB})
endif()
endforeach()
list(LENGTH CONAN_LIBS CONAN_LIBS_LEN)
list(LENGTH RESOLVED_CONAN_LIBS RESOLVED_CONAN_LIBS_LEN)
if(CONAN_LIBS_LEN EQUAL RESOLVED_CONAN_LIBS_LEN)
set(CONAN_LIBS ${RESOLVED_CONAN_LIBS})
endif()
endmacro()

macro(conan_check)
Expand Down