mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-03 13:56:25 +00:00
Repair master SDK build by using find_library in Windows to select path file from SDK libraries
This commit is contained in:
parent
7421844dea
commit
039e581d90
1 changed files with 15 additions and 1 deletions
|
|
@ -427,7 +427,21 @@ endif()
|
||||||
|
|
||||||
|
|
||||||
set(INCLUDED_DIRECTORIES "${LINPHONECXX_INCLUDE_DIRS}" )
|
set(INCLUDED_DIRECTORIES "${LINPHONECXX_INCLUDE_DIRS}" )
|
||||||
set(LIBRARIES ${BCTOOLBOX_CORE_LIBRARIES} ${BELCARD_LIBRARIES} ${LINPHONE_LIBRARIES} ${LINPHONECXX_LIBRARIES} ${MEDIASTREAMER2_LIBRARIES} ${ORTP_LIBRARIES} ${OPUS_LIBRARIES})
|
set(LIBRARIES_LIST ${BCTOOLBOX_CORE_LIBRARIES} ${BELCARD_LIBRARIES} ${LINPHONE_LIBRARIES} ${LINPHONECXX_LIBRARIES} ${MEDIASTREAMER2_LIBRARIES} ${ORTP_LIBRARIES} ${OPUS_LIBRARIES})
|
||||||
|
if(WIN32)
|
||||||
|
set(LIBRARIES)
|
||||||
|
foreach(LIBRARY ${LIBRARIES_LIST})# Search for lib full path
|
||||||
|
find_library(FIND_LIBRARY_ITEM_${LIBRARY} NAMES ${LIBRARY} lib${LIBRARY} REQUIRED)#find_library need a specific variable name each time
|
||||||
|
if(FIND_LIBRARY_ITEM_${LIBRARY})
|
||||||
|
list(APPEND LIBRARIES ${FIND_LIBRARY_ITEM_${LIBRARY}})
|
||||||
|
else()
|
||||||
|
message(SEND_ERROR "${LIBRARY} not found!")
|
||||||
|
endif()
|
||||||
|
endforeach()
|
||||||
|
else()
|
||||||
|
set(LIBRARIES ${LIBRARIES_LIST})
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
||||||
if(ENABLE_BUILD_VERBOSE)
|
if(ENABLE_BUILD_VERBOSE)
|
||||||
message("LIBRARIES : ${LIBRARIES}")
|
message("LIBRARIES : ${LIBRARIES}")
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue