-
Notifications
You must be signed in to change notification settings - Fork 43
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
KB-H019: no warnings if CMake files are in build_modules #375
Comments
4 tasks
I believe that conan-io/conan-center-index#14066 is encountering the issue identified here. Are there plans to update the hook to eliminate this warning? Thanks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sometimes a recipe creates CMake module files for internal usage of conan generators, they are not intended to be included directly by consumers projects, only by files generated by conan generators (they are private CMake module files in a sense). Since conan generators use absolute path of these module files thanks to
build_modules
/cmake_build_modules
, populatingbuilddirs
is not required for these files and it may even pollutesCMAKE_MODULE_PATH
/CMAKE_PREFIX_PATH
of consumers throughcmake
/CMakeToolchain
generators (these generators prependbuilddirs
of all dependencies toCMAKE_MODULE_PATH
&CMAKE_PREFIX_PATH
).Therefore, I advice to not display warnings if a folder not in
builddirs
contains CMake module files which are all listed inbuild_modules
or the newcmake_build_modules
property.see conan-io/conan-center-index#8869 (comment)
The text was updated successfully, but these errors were encountered: