aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
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 /CMakeLists.txt
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 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt10
1 files changed, 9 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8e1ef153..df8a58f5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -5,7 +5,7 @@
# Copyright (c) 2013 GoPivotal, Inc. All rights reserved.
# Copyright (c) 2015-2016 Jack R. Dunaway. All rights reserved.
# Copyright 2016 Franklin "Snaipe" Mathieu <franklinmathieu@gmail.com>
-# Copyright 2017 Garrett D'Amore <garrett@damore.org>
+# Copyright 2017 Staysail Systems, Inc. <info@staysail.tech>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
@@ -171,6 +171,7 @@ endif ()
option (NNG_TRANSPORT_WS "Enable WebSocket transport." ON)
if (NNG_TRANSPORT_WS)
add_definitions (-DNNG_HAVE_WEBSOCKET)
+ set(NNG_SUPP_WEBSOCKET ON)
endif ()
option (NNG_TRANSPORT_ZEROTIER "Enable ZeroTier transport (requires libzerotiercore)." OFF)
@@ -185,6 +186,13 @@ if (NNG_TRANSPORT_TLS)
add_definitions (-DNNG_HAVE_TLS)
endif()
+# dependencies
+if (NNG_SUPP_WEBSOCKET)
+ set(NNG_SUPP_HTTP ON)
+ set(NNG_SUPP_BASE64 ON)
+ set(NNG_SUPP_SHA1 ON)
+endif()
+
# Platform checks.
if (NNG_ENABLE_COVERAGE)