Skip to content

Commit

Permalink
Fix deprecated Cmake call FetchContent_Populate (#387)
Browse files Browse the repository at this point in the history
See deprecation warning documented in #386.
  • Loading branch information
imorlxs committed Oct 8, 2024
1 parent 5e6acc3 commit e36e3f7
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions cmake/utils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit e36e3f7

Please sign in to comment.