diff options
author | Valentin Richter <42276475+trackpadpro@users.noreply.github.com> | 2022-01-01 16:40:44 -0500 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2022-01-02 23:01:07 +0100 |
commit | 37b8a16fa759c6851c9b016dd3383b763aed23cc (patch) | |
tree | 6db98d67a6a5872f5d5e424eb782156260ce4f75 | |
parent | eec5ce4ab4cb2c93612e80e93abe6f19b6f5e7eb (diff) | |
download | curl-37b8a16fa759c6851c9b016dd3383b763aed23cc.tar.gz |
cmake: prevent dev warning due to mismatched arg
-- curl version=[7.81.0-DEV]
CMake Warning (dev) at /usr/share/cmake-3.22.1/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to `find_package_handle_standard_args` (MBEDTLS)
does not match the name of the calling package (MbedTLS). 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):
deps/curl/CMake/FindMbedTLS.cmake:31 (find_package_handle_standard_args)
deps/curl/CMakeLists.txt:473 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
Closes #8207
-rw-r--r-- | CMake/FindMbedTLS.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CMake/FindMbedTLS.cmake b/CMake/FindMbedTLS.cmake index 1746093df..7bdb1976d 100644 --- a/CMake/FindMbedTLS.cmake +++ b/CMake/FindMbedTLS.cmake @@ -5,7 +5,7 @@ # | (__| |_| | _ <| |___ # \___|\___/|_| \_\_____| # -# Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al. +# Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms @@ -28,7 +28,7 @@ find_library(MBEDCRYPTO_LIBRARY mbedcrypto) set(MBEDTLS_LIBRARIES "${MBEDTLS_LIBRARY}" "${MBEDX509_LIBRARY}" "${MBEDCRYPTO_LIBRARY}") include(FindPackageHandleStandardArgs) -find_package_handle_standard_args(MBEDTLS DEFAULT_MSG +find_package_handle_standard_args(MbedTLS DEFAULT_MSG MBEDTLS_INCLUDE_DIRS MBEDTLS_LIBRARY MBEDX509_LIBRARY MBEDCRYPTO_LIBRARY) mark_as_advanced(MBEDTLS_INCLUDE_DIRS MBEDTLS_LIBRARY MBEDX509_LIBRARY MBEDCRYPTO_LIBRARY) |