Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

caching does not seem to work #18

Open
maddanio opened this issue Apr 18, 2016 · 1 comment
Open

caching does not seem to work #18

maddanio opened this issue Apr 18, 2016 · 1 comment

Comments

@maddanio
Copy link

when i define the caching dir I get errors like:
-- Cloning git repo (https://github.com/iauns/cpm-glm @ origin/master)
CMake Error at build/libs/DOpenGL/cpm_packages/util/CPMGit.cmake:44 (message):
Failed to checkout tag: 'origin/master'
Call Stack (most recent call first):
build/libs/DOpenGL/cpm_packages/util/CPMCommonSCM.cmake:18 (_cpm_clone_git_repo)
build/libs/DOpenGL/cpm_packages/util/CPMCommonSCM.cmake:92 (_cpm_scm_clone)
build/libs/DOpenGL/cpm_packages/util/CPMGit.cmake:159 (_cpm_ensure_scm_repo_is_current)
build/libs/DOpenGL/cpm_packages/CPM.cmake:906 (_cpm_ensure_git_repo_is_current)
build/libs/DOpenGL/cpm_packages/CPM.cmake:1107 (CPM_EnsureRepoIsCurrent)
libs/DOpenGL/CMakeLists.txt:23 (CPM_AddModule)

@iauns
Copy link
Owner

iauns commented Apr 23, 2016

Just tried out caching for cpm-glm and it's working for me using CMake 3.5.0. Could you post the cache directory you are using and possibly other relevant info related to your build? I usually set my cache directory by exporting the CPM_CACHE_DIR environment variable to something like $HOME/.cpm_cache . Usually if CPM has a problem creating the cache directory it says so -- but one thing to try would be to use something like

message(STATUS "CPM cache dir ${__CPM_ENSURE_CACHE_DIR}")

in CPMCommonSCM.cmake line 92 to quickly figure out what directory CPM is trying to check out this specific code to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants