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 <hallotpierre@gmail.com>
This commit is contained in:
parent
828e7ae130
commit
6293e13142
@ -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
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user