mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
cmake: address new warnings from cmake-3.17
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.
This commit is contained in:
parent
f313ab18ae
commit
9cc593ca78
3 changed files with 3 additions and 3 deletions
|
|
@ -56,6 +56,6 @@ FIND_AND_ADD_CLANG_LIB(clangCrossTU)
|
|||
FIND_AND_ADD_CLANG_LIB(clangIndex)
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(CLANG DEFAULT_MSG CLANG_LIBRARIES CLANG_INCLUDE_DIRS)
|
||||
find_package_handle_standard_args(clang DEFAULT_MSG CLANG_LIBRARIES CLANG_INCLUDE_DIRS)
|
||||
|
||||
mark_as_advanced(CLANG_INCLUDE_DIRS CLANG_LIBRARIES CLANG_LIBDIRS)
|
||||
|
|
|
|||
|
|
@ -47,6 +47,6 @@ else()
|
|||
endif()
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(LLD DEFAULT_MSG LLD_LIBRARIES LLD_INCLUDE_DIRS)
|
||||
find_package_handle_standard_args(lld DEFAULT_MSG LLD_LIBRARIES LLD_INCLUDE_DIRS)
|
||||
|
||||
mark_as_advanced(LLD_INCLUDE_DIRS LLD_LIBRARIES)
|
||||
|
|
|
|||
|
|
@ -120,6 +120,6 @@ link_directories("${CMAKE_PREFIX_PATH}/lib")
|
|||
link_directories("${LLVM_LIBDIRS}")
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(LLVM DEFAULT_MSG LLVM_LIBRARIES LLVM_INCLUDE_DIRS)
|
||||
find_package_handle_standard_args(llvm DEFAULT_MSG LLVM_LIBRARIES LLVM_INCLUDE_DIRS)
|
||||
|
||||
mark_as_advanced(LLVM_INCLUDE_DIRS LLVM_LIBRARIES LLVM_LIBDIRS)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue