[cmake] add missing include

include(CMakeDependentOption) before use.
This commit is contained in:
akallabeth 2024-05-16 16:48:21 +02:00
parent 3f97fb59ad
commit ac69cf346e
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5

View File

@ -1,3 +1,5 @@
include(CMakeDependentOption)
option(WITH_JSON_DISABLED "Build without any JSON support" OFF)
CMAKE_DEPENDENT_OPTION(WITH_CJSON_REQUIRED "Build with cJSON (fail if not found)" OFF "NOT WITH_JSON_DISABLED" OFF)
CMAKE_DEPENDENT_OPTION(WITH_JSONC_REQUIRED "Build with JSON-C (fail if not found)" OFF "NOT WITH_JSON_DISABLED" OFF)