Skip to content

Commit

Permalink
[winpr,utils] fix cJSON detection
Browse files Browse the repository at this point in the history
pkg-config sets CJSON_FOUND, check for that instead of the paths, which
might be unset or set to <var>-NOTFOUND
  • Loading branch information
akallabeth committed May 16, 2024
1 parent ef63f18 commit 28bd901
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion winpr/libwinpr/utils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ if (NOT WITH_JSON_DISABLED)
pkg_check_modules(CJSON libcjson)
endif()

if (NOT CJSON_LIBRARIES OR NOT CJSON_INCLUDE_DIRS)
if (NOT CJSON_FOUND)
find_path(CJSON_INCLUDE_DIRS
NAMES cjson/cJSON.h
)
Expand Down

0 comments on commit 28bd901

Please sign in to comment.