mirror of
https://github.com/overte-org/overte.git
synced 2025-04-07 22:33:04 +02:00
Fix webrtc link errors in debug builds
This commit is contained in:
parent
21b8e268c1
commit
7c84d897ba
1 changed files with 4 additions and 2 deletions
|
@ -15,9 +15,11 @@ macro(TARGET_WEBRTC)
|
|||
# select_library_configurations(WEBRTC)
|
||||
else()
|
||||
set(WEBRTC_INCLUDE_DIRS "${VCPKG_INSTALL_ROOT}/include/webrtc")
|
||||
find_library(WEBRTC_LIBRARY NAMES webrtc PATHS ${VCPKG_INSTALL_ROOT}/lib/ NO_DEFAULT_PATH)
|
||||
target_include_directories(${TARGET_NAME} SYSTEM PUBLIC ${WEBRTC_INCLUDE_DIRS})
|
||||
target_link_libraries(${TARGET_NAME} ${WEBRTC_LIBRARY})
|
||||
find_library(WEBRTC_LIBRARY_RELEASE webrtc PATHS ${VCPKG_INSTALL_ROOT}/lib NO_DEFAULT_PATH)
|
||||
find_library(WEBRTC_LIBRARY_DEBUG webrtc PATHS ${VCPKG_INSTALL_ROOT}/debug/lib NO_DEFAULT_PATH)
|
||||
select_library_configurations(WEBRTC)
|
||||
target_link_libraries(${TARGET_NAME} ${WEBRTC_LIBRARIES})
|
||||
endif()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue