From e36e3f78e7d3e7105658bbf626599acd046decf9 Mon Sep 17 00:00:00 2001 From: Isaac Morales Santana <102816007+imorlxs@users.noreply.github.com> Date: Mon, 26 Aug 2024 11:02:05 +0200 Subject: [PATCH] Fix deprecated Cmake call `FetchContent_Populate` (#387) See deprecation warning documented in #386. --- cmake/utils.cmake | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/cmake/utils.cmake b/cmake/utils.cmake index 086ab744f..7cd63a6da 100644 --- a/cmake/utils.cmake +++ b/cmake/utils.cmake @@ -549,12 +549,9 @@ Unset the environment variable BDM_LOCAL_LFS to download the file.") DOWNLOAD_DIR ${DEST_PARENT} SOURCE_DIR ${DEST} ) - - FetchContent_GetProperties(${TAR_FILENAME}) - if (NOT ${TAR_FILENAME}_POPULATED) - FetchContent_Populate(${TAR_FILENAME}) - endif() - + + FetchContent_MakeAvailable(${TAR_FILENAME}) + # Remove subbuild files, we don't need them file(REMOVE_RECURSE ${CMAKE_BINARY_DIR}/_deps/) endif()