Changeset View
Changeset View
Standalone View
Standalone View
cmake/modules/ExternalLibraryHelper.cmake
Show All 13 Lines | function(find_component LIB COMPONENT) | ||||
if(${LIB}_FIND_COMPONENTS AND NOT ${COMPONENT} IN_LIST ${LIB}_FIND_COMPONENTS) | if(${LIB}_FIND_COMPONENTS AND NOT ${COMPONENT} IN_LIST ${LIB}_FIND_COMPONENTS) | ||||
return() | return() | ||||
endif() | endif() | ||||
find_library(${LIB}_${COMPONENT}_LIBRARY | find_library(${LIB}_${COMPONENT}_LIBRARY | ||||
NAMES ${ARG_NAMES} | NAMES ${ARG_NAMES} | ||||
PATHS "" ${ARG_PATHS} | PATHS "" ${ARG_PATHS} | ||||
HINTS "" ${ARG_HINTS} | HINTS "" ${ARG_HINTS} | ||||
PATH_SUFFIXES "" ${ARG_PATH_SUFFIXES} | PATH_SUFFIXES "lib" ${ARG_PATH_SUFFIXES} | ||||
) | ) | ||||
mark_as_advanced(${LIB}_${COMPONENT}_LIBRARY) | mark_as_advanced(${LIB}_${COMPONENT}_LIBRARY) | ||||
if(${LIB}_${COMPONENT}_LIBRARY) | if(${LIB}_${COMPONENT}_LIBRARY) | ||||
# On success, set the standard FOUND variable... | # On success, set the standard FOUND variable... | ||||
set(${LIB}_${COMPONENT}_FOUND TRUE PARENT_SCOPE) | set(${LIB}_${COMPONENT}_FOUND TRUE PARENT_SCOPE) | ||||
# ... and append the library path to the LIBRARIES variable ... | # ... and append the library path to the LIBRARIES variable ... | ||||
Show All 28 Lines |