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

Newer versions of CMake generate multiple warnings when finding packages #446

Open
jayeshkrishna opened this issue Dec 2, 2021 · 0 comments
Assignees

Comments

@jayeshkrishna
Copy link
Contributor

jayeshkrishna commented Dec 2, 2021

@bartgol reported this issue (and provided a fix),

When calling find_package with specific components requested, the current implementation of LibFind generates several warnings, like the following:

CMake Warning (dev) at /home/luca/workdir/utils/cmake/cmake-install/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:426 (message):
  The package name passed to `find_package_handle_standard_args` (GPTL_C)
  does not match the name of the calling package (GPTL).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  /home/luca/workdir/scream/scream-src/master/externals/scorpio/cmake/LibFind.cmake:302 (find_package_handle_standard_args)
  /home/luca/workdir/scream/scream-src/master/externals/scorpio/cmake/FindGPTL.cmake:64 (find_package_component)
  /home/luca/workdir/scream/scream-src/master/externals/scorpio/src/clib/CMakeLists.txt:91 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.
@jayeshkrishna jayeshkrishna changed the title Newer versions of CMake generates multiple warnings when finding packages Newer versions of CMake generate multiple warnings when finding packages Dec 2, 2021
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

Successfully merging a pull request may close this issue.

2 participants