| author | |
| committer | |
| log | 9cc593ca78134ab391a0c9b671a0870740047896 |
| tree | d10a13a43e11ad828854193d5f27a2b3b6dedbc4 |
| parent | f313ab18aecea1ade0b6a90d671352a641ad351a |
| signature |
Match package-name case from CMakeLists.txt .
New warning sample:
The package name passed to `find_package_handle_standard_args` (LLVM) does
not match the name of the calling package (llvm). This can lead to
problems in calling code that expects `find_package` result variables
(e.g., `_FOUND`) to follow a certain pattern.3 files changed, 3 insertions(+), 3 deletions(-)
cmake/Findclang.cmake+1-1| ... | @@ -56,6 +56,6 @@ FIND_AND_ADD_CLANG_LIB(clangCrossTU) | ... | @@ -56,6 +56,6 @@ FIND_AND_ADD_CLANG_LIB(clangCrossTU) |
| 56 | FIND_AND_ADD_CLANG_LIB(clangIndex) | 56 | FIND_AND_ADD_CLANG_LIB(clangIndex) |
| 57 | 57 | ||
| 58 | include(FindPackageHandleStandardArgs) | 58 | include(FindPackageHandleStandardArgs) |
| 59 | find_package_handle_standard_args(CLANG DEFAULT_MSG CLANG_LIBRARIES CLANG_INCLUDE_DIRS) | 59 | find_package_handle_standard_args(clang DEFAULT_MSG CLANG_LIBRARIES CLANG_INCLUDE_DIRS) |
| 60 | 60 | ||
| 61 | mark_as_advanced(CLANG_INCLUDE_DIRS CLANG_LIBRARIES CLANG_LIBDIRS) | 61 | mark_as_advanced(CLANG_INCLUDE_DIRS CLANG_LIBRARIES CLANG_LIBDIRS) |
cmake/Findlld.cmake+1-1| ... | @@ -47,6 +47,6 @@ else() | ... | @@ -47,6 +47,6 @@ else() |
| 47 | endif() | 47 | endif() |
| 48 | 48 | ||
| 49 | include(FindPackageHandleStandardArgs) | 49 | include(FindPackageHandleStandardArgs) |
| 50 | find_package_handle_standard_args(LLD DEFAULT_MSG LLD_LIBRARIES LLD_INCLUDE_DIRS) | 50 | find_package_handle_standard_args(lld DEFAULT_MSG LLD_LIBRARIES LLD_INCLUDE_DIRS) |
| 51 | 51 | ||
| 52 | mark_as_advanced(LLD_INCLUDE_DIRS LLD_LIBRARIES) | 52 | mark_as_advanced(LLD_INCLUDE_DIRS LLD_LIBRARIES) |
cmake/Findllvm.cmake+1-1| ... | @@ -120,6 +120,6 @@ link_directories("${CMAKE_PREFIX_PATH}/lib") | ... | @@ -120,6 +120,6 @@ link_directories("${CMAKE_PREFIX_PATH}/lib") |
| 120 | link_directories("${LLVM_LIBDIRS}") | 120 | link_directories("${LLVM_LIBDIRS}") |
| 121 | 121 | ||
| 122 | include(FindPackageHandleStandardArgs) | 122 | include(FindPackageHandleStandardArgs) |
| 123 | find_package_handle_standard_args(LLVM DEFAULT_MSG LLVM_LIBRARIES LLVM_INCLUDE_DIRS) | 123 | find_package_handle_standard_args(llvm DEFAULT_MSG LLVM_LIBRARIES LLVM_INCLUDE_DIRS) |
| 124 | 124 | ||
| 125 | mark_as_advanced(LLVM_INCLUDE_DIRS LLVM_LIBRARIES LLVM_LIBDIRS) | 125 | mark_as_advanced(LLVM_INCLUDE_DIRS LLVM_LIBRARIES LLVM_LIBDIRS) |