From 6293e13142b3b94635cfba9666563834c1fe8a1a Mon Sep 17 00:00:00 2001 From: Pierre Hallot Date: Tue, 1 Dec 2020 12:55:29 +0100 Subject: [PATCH] Fix CMake warning about cJSON name mismatch CMake Warning (dev) at /usr/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:424 (message): The package name passed to `find_package_handle_standard_args` (CJSON) does not match the name of the calling package (cJSON). 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/FindcJSON.cmake:23 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists.txt:125 (FIND_PACKAGE) This warning is for project developers. Use -Wno-dev to suppress it. Signed-off-by: Pierre Hallot --- cmake/FindcJSON.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/FindcJSON.cmake b/cmake/FindcJSON.cmake index 9ec113a2..60a65c69 100644 --- a/cmake/FindcJSON.cmake +++ b/cmake/FindcJSON.cmake @@ -20,7 +20,7 @@ FIND_LIBRARY( CJSON_LIBRARY HINTS ${CJSON_DIR} ) -FIND_PACKAGE_HANDLE_STANDARD_ARGS( CJSON DEFAULT_MSG +FIND_PACKAGE_HANDLE_STANDARD_ARGS( cJSON DEFAULT_MSG CJSON_INCLUDE_DIR CJSON_LIBRARY )