diff options
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/config.cmake | 1 | ||||
-rw-r--r-- | cmake/deps.cmake | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/cmake/config.cmake b/cmake/config.cmake index c1fd68b..8aa6549 100644 --- a/cmake/config.cmake +++ b/cmake/config.cmake @@ -44,6 +44,7 @@ set(WITH_CMDLINE_OPERATION TRUE CACHE BOOL "Include support for setting options set(WITH_CMDLINE_COMMANDS TRUE CACHE BOOL "Include support for setting handler scripts (e.g. --on-up) on the command line") set(WITH_DYNAMIC_PEERS TRUE CACHE BOOL "Include support for dynamic peers (using on-verify handlers)") +set(WITH_STATUS_SOCKET TRUE CACHE BOOL "Include support for the status socket") set(MAX_CONFIG_DEPTH 10 CACHE STRING "Maximum config include depth") diff --git a/cmake/deps.cmake b/cmake/deps.cmake index ea5a0a0..213b3d1 100644 --- a/cmake/deps.cmake +++ b/cmake/deps.cmake @@ -59,3 +59,13 @@ else(WITH_CAPABILITIES) set(CAP_INCLUDE_DIR "") set(CAP_LIBRARY "") endif(WITH_CAPABILITIES) + +if(WITH_STATUS_SOCKET) + pkg_check_modules(JSONC json-c) +else(WITH_STATUS_SOCKET) + set(JSONC_INCLUDE_DIRS "") + set(JSONC_CFLAGS_OTHER "") + set(JSONC_LIBRARY_DIRS "") + set(JSONC_LIBRARIES "") + set(JSONC_LDFLAGS_OTHER "") +endif(WITH_STATUS_SOCKET) |