aboutsummaryrefslogtreecommitdiff
path: root/minimal-examples/api-tests
diff options
context:
space:
mode:
authorAndy Green <andy@warmcat.com>2019-08-17 06:55:11 +0100
committerAndy Green <andy@warmcat.com>2019-08-18 05:40:56 +0100
commit2a98642cff09d06e7da9dec96e66f55b1132f835 (patch)
treef618e9b18aa1bd191695be3239d8bc73fbc5c519 /minimal-examples/api-tests
parentd7f0521aeb7e98bbbcdd1ed75df7331cfb11aa36 (diff)
downloadlibwebsockets-2a98642cff09d06e7da9dec96e66f55b1132f835.tar.gz
c++: establish a single place for opaque forward references
Diffstat (limited to 'minimal-examples/api-tests')
-rw-r--r--minimal-examples/api-tests/api-test-lws_struct-json/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/minimal-examples/api-tests/api-test-lws_struct-json/CMakeLists.txt b/minimal-examples/api-tests/api-test-lws_struct-json/CMakeLists.txt
index a0900f86..83e37da0 100644
--- a/minimal-examples/api-tests/api-test-lws_struct-json/CMakeLists.txt
+++ b/minimal-examples/api-tests/api-test-lws_struct-json/CMakeLists.txt
@@ -61,7 +61,10 @@ MACRO(require_lws_config reqconfig _val result)
endif()
ENDMACRO()
+set(requirements 1)
+require_lws_config(LWS_WITH_STRUCT_JSON 1 requirements)
+if (requirements)
add_executable(${SAMP} ${SRCS})
@@ -71,3 +74,4 @@ ENDMACRO()
else()
target_link_libraries(${SAMP} websockets)
endif()
+endif()