aboutsummaryrefslogtreecommitdiff
path: root/src/supplemental/websocket
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-12-28 20:52:15 -0800
committerGarrett D'Amore <garrett@damore.org>2017-12-28 20:52:15 -0800
commit63e0baf37c8024174aa4bacb12dccc7040de74d8 (patch)
treedadbaa4a7f7d026af16674e85b67d6aff3613746 /src/supplemental/websocket
parentcbc21ab0a2e11c8be23dfa146adf7bb091c97f71 (diff)
downloadnng-63e0baf37c8024174aa4bacb12dccc7040de74d8.tar.gz
nng-63e0baf37c8024174aa4bacb12dccc7040de74d8.tar.bz2
nng-63e0baf37c8024174aa4bacb12dccc7040de74d8.zip
fixes #172 HTTP and websocket need better conditional inclusion
Diffstat (limited to 'src/supplemental/websocket')
-rw-r--r--src/supplemental/websocket/CMakeLists.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/supplemental/websocket/CMakeLists.txt b/src/supplemental/websocket/CMakeLists.txt
index f3283257..5ddd6cb1 100644
--- a/src/supplemental/websocket/CMakeLists.txt
+++ b/src/supplemental/websocket/CMakeLists.txt
@@ -8,7 +8,9 @@
# found online at https://opensource.org/licenses/MIT.
#
-set(WEBSOCKET_SOURCES
- supplemental/websocket/websocket.c
- supplemental/websocket/websocket.h)
+if (NNG_SUPP_WEBSOCKET)
+ set(WEBSOCKET_SOURCES
+ supplemental/websocket/websocket.c
+ supplemental/websocket/websocket.h)
+endif()
set(NNG_SOURCES ${NNG_SOURCES} ${WEBSOCKET_SOURCES} PARENT_SCOPE)