FetchContent: populate fails with Boost using URL
The following fails with CMake 3.15.5:
FetchContent_Declare(
boost
URL https://dl.bintray.com/boostorg/release/1.69.0/source/boost_1_69_0.tar.gz
SOURCE_DIR "C:/dev/libs/boost-src"
)
FetchContent_GetProperties(boost)
if(NOT boost_POPULATED)
FetchContent_Populate(boost)
endif()
The error is the following:
CMake Error at C:/dev/project/build/_deps/boost-subbuild/boost-populate-prefix/src/boost-populate-stamp/extract-boost-populate.cmake:51 (file):
file RENAME failed to rename
C:/dev/libs/ex-boost-populate1234/boost_1_69_0
to
C:/dev/libs/boost-src
because: No such file or directory
Edited by Boris Basic