diff options
author | Antonio Sanchez <cantonios@google.com> | 2021-02-23 20:16:52 -0800 |
---|---|---|
committer | David Tellenbach <david.tellenbach@me.com> | 2021-02-24 09:52:05 +0000 |
commit | 119763cf38093ddc82ae2a9d644e3d975148d908 (patch) | |
tree | fa66b216fe2c07c537b795b1b8b234bcb8ede58b /cmake | |
parent | 6cf0ab5e99c27cb7b128e55991fbad5a7d234c8e (diff) |
Eliminate CMake FindPackageHandleStandardArgs warnings.
CMake complains that the package name does not match when the case
differs, e.g.:
```
CMake Warning (dev) at /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (message):
The package name passed to `find_package_handle_standard_args` (UMFPACK)
does not match the name of the calling package (Umfpack). 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):
cmake/FindUmfpack.cmake:50 (find_package_handle_standard_args)
bench/spbench/CMakeLists.txt:24 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
```
Here we rename the libraries to match their true cases.
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/FindCHOLMOD.cmake (renamed from cmake/FindCholmod.cmake) | 2 | ||||
-rw-r--r-- | cmake/FindGoogleHash.cmake | 2 | ||||
-rw-r--r-- | cmake/FindSuperLU.cmake | 2 | ||||
-rw-r--r-- | cmake/FindUMFPACK.cmake (renamed from cmake/FindUmfpack.cmake) | 0 |
4 files changed, 3 insertions, 3 deletions
diff --git a/cmake/FindCholmod.cmake b/cmake/FindCHOLMOD.cmake index cea43ec43..e470cb2e0 100644 --- a/cmake/FindCholmod.cmake +++ b/cmake/FindCHOLMOD.cmake @@ -1,4 +1,4 @@ -# Cholmod lib usually requires linking to a blas and lapack library. +# CHOLMOD lib usually requires linking to a blas and lapack library. # It is up to the user of this module to find a BLAS and link to it. if (CHOLMOD_INCLUDES AND CHOLMOD_LIBRARIES) diff --git a/cmake/FindGoogleHash.cmake b/cmake/FindGoogleHash.cmake index f46ea9c39..481eb4dad 100644 --- a/cmake/FindGoogleHash.cmake +++ b/cmake/FindGoogleHash.cmake @@ -18,6 +18,6 @@ if(GOOGLEHASH_INCLUDES) endif() include(FindPackageHandleStandardArgs) -find_package_handle_standard_args(GOOGLEHASH DEFAULT_MSG GOOGLEHASH_INCLUDES GOOGLEHASH_COMPILE) +find_package_handle_standard_args(GoogleHash DEFAULT_MSG GOOGLEHASH_INCLUDES GOOGLEHASH_COMPILE) mark_as_advanced(GOOGLEHASH_INCLUDES) diff --git a/cmake/FindSuperLU.cmake b/cmake/FindSuperLU.cmake index e86fe5cfb..4b779f516 100644 --- a/cmake/FindSuperLU.cmake +++ b/cmake/FindSuperLU.cmake @@ -90,7 +90,7 @@ endif() endif() include(FindPackageHandleStandardArgs) -find_package_handle_standard_args(SUPERLU +find_package_handle_standard_args(SuperLU REQUIRED_VARS SUPERLU_INCLUDES SUPERLU_LIBRARIES SUPERLU_VERSION_OK VERSION_VAR SUPERLU_VERSION_VAR) diff --git a/cmake/FindUmfpack.cmake b/cmake/FindUMFPACK.cmake index 91cf6372f..91cf6372f 100644 --- a/cmake/FindUmfpack.cmake +++ b/cmake/FindUMFPACK.cmake |