forked from Green-Sky/tomato
add fallback to dynamic toxcore
This commit is contained in:
parent
33875cb58b
commit
06d7148408
4
external/toxcore/CMakeLists.txt
vendored
4
external/toxcore/CMakeLists.txt
vendored
@ -12,7 +12,11 @@ add_subdirectory(./c-toxcore)
|
||||
# the sad case
|
||||
add_library(toxcore INTERFACE)
|
||||
|
||||
if (TARGET toxcore_static)
|
||||
target_link_libraries(toxcore INTERFACE toxcore_static)
|
||||
else()
|
||||
target_link_libraries(toxcore INTERFACE toxcore_shared)
|
||||
endif()
|
||||
|
||||
# HACK: "install" api headers into binary dir
|
||||
configure_file(
|
||||
|
Loading…
Reference in New Issue
Block a user