[build] fixed cJSON dependency

need to find_package at top level so symbols are defined for add_library
and target_*
This commit is contained in:
Armin Novak
2023-03-09 23:32:02 +01:00
committed by akallabeth
parent 47ad94e4f9
commit 8219c30eef
2 changed files with 4 additions and 5 deletions

View File

@@ -82,6 +82,10 @@ macro (freerdp_definition_add)
set (LIBFREERDP_DEFINITIONS ${LIBFREERDP_DEFINITIONS} PARENT_SCOPE)
endmacro()
find_package(cJSON REQUIRED)
freerdp_include_directory_add(${CJSON_INCLUDE_DIRS})
freerdp_library_add(${CJSON_LIBRARIES})
if (WITH_SWSCALE)
find_package(SWScale REQUIRED)
endif(WITH_SWSCALE)