fix toxcore cmake (for the most part)
This commit is contained in:
parent
f160ad1e0b
commit
7f07b90a79
7
external/toxcore/CMakeLists.txt
vendored
7
external/toxcore/CMakeLists.txt
vendored
@ -18,13 +18,14 @@ if (NOT TARGET toxcore)
|
||||
|
||||
FetchContent_Declare(toxcore
|
||||
GIT_REPOSITORY https://github.com/TokTok/c-toxcore.git
|
||||
GIT_TAG v0.2.19
|
||||
GIT_TAG v0.2.20
|
||||
EXCLUDE_FROM_ALL
|
||||
)
|
||||
|
||||
FetchContent_GetProperties(toxcore)
|
||||
if(NOT toxcore_POPULATED)
|
||||
FetchContent_Populate(toxcore)
|
||||
# pupulates and adds cmake subdir
|
||||
FetchContent_MakeAvailable(toxcore)
|
||||
|
||||
# TODO: should this all be in the populated if??
|
||||
|
||||
@ -74,7 +75,7 @@ if (NOT TARGET toxcore)
|
||||
# @ONLY
|
||||
#)
|
||||
|
||||
target_include_directories(toxcore INTERFACE ${CMAKE_CURRENT_BINARY_DIR}/include/)
|
||||
target_include_directories(toxcore INTERFACE ${toxcore_BINARY_DIR}/include/)
|
||||
|
||||
find_package(sodium QUIET)
|
||||
if(unofficial-sodium_FOUND) # vcpkg
|
||||
|
Loading…
x
Reference in New Issue
Block a user