add fallback to dynamic toxcore
This commit is contained in:
parent
33875cb58b
commit
06d7148408
6
external/toxcore/CMakeLists.txt
vendored
6
external/toxcore/CMakeLists.txt
vendored
@ -12,7 +12,11 @@ add_subdirectory(./c-toxcore)
|
||||
# the sad case
|
||||
add_library(toxcore INTERFACE)
|
||||
|
||||
target_link_libraries(toxcore INTERFACE toxcore_static)
|
||||
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