We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
find_package
I'm trying to download a project which does not contain a CMake configuration from GitHub using
cpmaddpackage( NAME CWPack GITHUB_REPOSITORY "clwi/CWPack" GIT_TAG 1.4 SYSTEM YES DOWNLOAD_ONLY YES)
and then provide my own Find* module by adding a FindCWPack.cmake file inside a cmake subdirectory.
FindCWPack.cmake
cmake
However, trying to call find_package to find this file does not work.
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/cmake) find_package(CWPack)
At least not without also setting CPM_DONT_UPDATE_MODULE_PATH.
CPM_DONT_UPDATE_MODULE_PATH
Is this intended behavior? I think it is a bit confusing, specially if DOWNLOAD_ONLY is specified as well?
DOWNLOAD_ONLY
The text was updated successfully, but these errors were encountered:
add link to issue cpm-cmake/CPM.cmake#649
004feb9
Successfully merging a pull request may close this issue.
I'm trying to download a project which does not contain a CMake configuration from GitHub using
and then provide my own Find* module by adding a
FindCWPack.cmake
file inside acmake
subdirectory.However, trying to call
find_package
to find this file does not work.At least not without also setting
CPM_DONT_UPDATE_MODULE_PATH
.Is this intended behavior? I think it is a bit confusing, specially if
DOWNLOAD_ONLY
is specified as well?The text was updated successfully, but these errors were encountered: