Updated the server CMakeLists.txt
This commit is contained in:
parent
1ad3187a86
commit
be58f24196
@ -303,9 +303,19 @@ target_link_libraries(TeaSpeakServer
|
||||
zstd::libzstd_static
|
||||
)
|
||||
|
||||
target_link_libraries(TeaSpeakServer
|
||||
if(EXISTS "${CMAKE_SOURCE_DIR}/rtclib/librtc.so" AND NOT NO_RELEASE_RTC)
|
||||
message("Linking to release librtc file")
|
||||
target_link_libraries(TeaSpeakServer
|
||||
${CMAKE_SOURCE_DIR}/rtclib/librtc.so
|
||||
)
|
||||
elseif(EXISTS "${CMAKE_SOURCE_DIR}/rtclib/target/debug/libteaspeak_rtc.so")
|
||||
message("Linkding against debug libteaspeak_rtc.so")
|
||||
target_link_libraries(TeaSpeakServer
|
||||
${CMAKE_SOURCE_DIR}/rtclib/target/debug/libteaspeak_rtc.so
|
||||
)
|
||||
)
|
||||
else()
|
||||
message(FATAL_ERROR "Missing librtc library file")
|
||||
endif()
|
||||
|
||||
# include_directories(${LIBRARY_PATH}/boringssl/include/)
|
||||
target_link_libraries(TeaSpeakServer
|
||||
|
Loading…
Reference in New Issue
Block a user