[cmake] fix JSON detection

This commit is contained in:
akallabeth 2024-06-19 14:28:34 +02:00
parent 5dc80c9183
commit 3abd141451
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ if (NOT WITH_JSON_DISABLED)
find_library(CJSON_LIBRARIES
NAMES cjson
)
if (NOT "${CJSON_LIBRARIES}" EQUAL "CJSON_LIBRARIES-NOTFOUND" AND NOT "${CJSON_INCLUDE_DIRS}" EQUAL "CJSON_INCLUDE_DIRS-NOTFOUND")
if (NOT "${CJSON_LIBRARIES}" STREQUAL "CJSON_LIBRARIES-NOTFOUND" AND NOT "${CJSON_INCLUDE_DIRS}" STREQUAL "CJSON_INCLUDE_DIRS-NOTFOUND")
set(CJSON_FOUND ON)
endif()
endif()