-
Notifications
You must be signed in to change notification settings - Fork 212
Open
Description
I am currently pulling in a dependency from an SVN repo with FetchContent. I tried to replace that with CPM in order to get offline builds working once the dependencies are cached. It works for git repos but not SVN.
CPMAddPackage(NAME <package_name> SVN_REPOSITORY "http://subversion.<address>.com/<repo_path>/tags/1_1_1_1")Here's how I configure CPM:
set(CPM_DOWNLOAD_VERSION "v0.42.0")
set(CPM_HASH_SUM "2020b4fc42dba44817983e06342e682ecfc3d2f484a581f11cc5731fbe4dce8a")
set(CPM_SOURCE_CACHE $ENV{HOME}/.cache/cpm)
set(CPM_DOWNLOAD_LOCATION "${CPM_SOURCE_CACHE}/CPM/${CPM_DOWNLOAD_VERSION}/CPM.cmake")
get_filename_component(CPM_DOWNLOAD_LOCATION ${CPM_DOWNLOAD_LOCATION} ABSOLUTE)
file(DOWNLOAD
https://github.com/cpm-cmake/CPM.cmake/releases/download/${CPM_DOWNLOAD_VERSION}/CPM.cmake
${CPM_DOWNLOAD_LOCATION}
EXPECTED_HASH SHA256=${CPM_HASH_SUM}
)
include(${CPM_DOWNLOAD_LOCATION})I also tried to remove all instances of include(FetchContent) I could find. In my dependencies.cmake file it goes past all the git repos fine and then breaks at the first SVN repo. What could be the cause? From my understanding of the README cached offline builds should just work regardless of git or svn. I also checked in my source cache location and the library is correctly downloaded there, yet CPM still tries to download it again.
Metadata
Metadata
Assignees
Labels
No labels