From 3abd141451f306233436145848a1729df8303481 Mon Sep 17 00:00:00 2001 From: akallabeth Date: Wed, 19 Jun 2024 14:28:34 +0200 Subject: [PATCH] [cmake] fix JSON detection --- cmake/JsonDetect.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/JsonDetect.cmake b/cmake/JsonDetect.cmake index 994e3039d..c23041b4e 100644 --- a/cmake/JsonDetect.cmake +++ b/cmake/JsonDetect.cmake @@ -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()