From 7f07b90a79a6d0aaefea3b1de976f139a73de675 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Sun, 12 Jan 2025 16:13:46 +0100 Subject: [PATCH] fix toxcore cmake (for the most part) --- external/toxcore/CMakeLists.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/external/toxcore/CMakeLists.txt b/external/toxcore/CMakeLists.txt index 983ed12..a8eef91 100644 --- a/external/toxcore/CMakeLists.txt +++ b/external/toxcore/CMakeLists.txt @@ -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