You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the dependency package fails to download due to network issues, calling CPMAddPackage again will not attempt to download the dependency package again.
#623
Open
web3hulei opened this issue
Dec 4, 2024
· 0 comments
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?
The text was updated successfully, but these errors were encountered:
I used CPMAddPackage to download Boost. The specific command is as follows:
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?
The text was updated successfully, but these errors were encountered: