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

KB-H019: no warnings if CMake files are in build_modules #375

Open
SpaceIm opened this issue Jan 13, 2022 · 1 comment
Open

KB-H019: no warnings if CMake files are in build_modules #375

SpaceIm opened this issue Jan 13, 2022 · 1 comment
Assignees

Comments

@SpaceIm
Copy link
Contributor

SpaceIm commented Jan 13, 2022

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, populating builddirs is not required for these files and it may even pollutes CMAKE_MODULE_PATH/CMAKE_PREFIX_PATH of consumers through cmake/CMakeToolchain generators (these generators prepend builddirs of all dependencies to CMAKE_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 in build_modules or the new cmake_build_modules property.

see conan-io/conan-center-index#8869 (comment)

@System-Arch
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants