Skip to content

Commit

Permalink
Fix CMake warning about cJSON name mismatch
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Hallot authored and ralight committed Dec 2, 2020
1 parent 828e7ae commit 6293e13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/FindcJSON.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand Down

0 comments on commit 6293e13

Please sign in to comment.