]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Fix CMake warning 1793/head
authorJoris Clement <joris.clement@posteo.de>
Fri, 28 Oct 2022 15:22:47 +0000 (17:22 +0200)
committerJoris Clement <joris.clement@posteo.de>
Fri, 28 Oct 2022 15:22:47 +0000 (17:22 +0200)
commit92f183af49740154f33688695b254832ec50a561
tree13be4e1aa43b3b73c3b6b481a9bdc0eeb4b1d40c
parent9ff3a595aafbbbf5da4c61aa9f56a7a13daf8feb
Fix CMake warning

The warnings occurs at least with CMake version 3.24. It is caused by
CMake trying to find the gcc library due to case sensitivity.

The warning message was:
```
CMake Warning (dev) at /usr/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (LIBGCC)
  does not match the name of the calling package (LibGCC).  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):
  build/cmake/FindLibGCC.cmake:17 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:1269 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.
```
CMakeLists.txt
build/cmake/FindLIBGCC.cmake [moved from build/cmake/FindLibGCC.cmake with 100% similarity]