I used CPMAddPackage to download Boost. The specific command is as follows:
CPMAddPackage(NAME Boost
VERSION 1.86.0
URL https://github.com/boostorg/boost/releases/download/boost-1.86.0/boost-1.86.0-cmake.7z
OPTIONS "Boost_USE_STATIC_LIBS ON" "BOOST_INCLUDE_LIBRARIES multiprecision")
I configured the CPM_SOURCE_CACHE environment variable. The first time I ran the cmake command, CPMAddPackage attempted to download the Boost package and created the corresponding directory in the cache to store the source files. However, due to network issues, the download failed. The second time I ran the cmake command, CPMAddPackage did not attempt to download the package again. Instead, it assumed that Boost had been successfully downloaded and continued executing the subsequent commands. This caused the Boost target to fail to be created, leading to errors in the subsequent steps. Manually deleting the newly created Boost directory from the cache resolves the issue. Could you please let me know if there is any issue with how I am using CPMAddPackage?