aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-01-25 23:34:41 -0800
committerGarrett D'Amore <garrett@damore.org>2024-01-27 16:54:54 -0800
commitd6f0c13355199173dd7a2957dc2bae54bb5d85c3 (patch)
tree92d70a3bfcad8896714dcbaa0930a21dd04605d1 /cmake
parent463b2fe68fb55898d66a7d89064ad76c67083501 (diff)
downloadnng-d6f0c13355199173dd7a2957dc2bae54bb5d85c3.tar.gz
nng-d6f0c13355199173dd7a2957dc2bae54bb5d85c3.tar.bz2
nng-d6f0c13355199173dd7a2957dc2bae54bb5d85c3.zip
New CMAKE option NNG_ENABLE_COMPAT (defaults ON)
This option allows the compatibility code to be elided from the build. This saves build time, and eliminates bloat from a static library when used strictly in native NNG mode.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/NNGOptions.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/NNGOptions.cmake b/cmake/NNGOptions.cmake
index 6335fc63..abb3f03d 100644
--- a/cmake/NNGOptions.cmake
+++ b/cmake/NNGOptions.cmake
@@ -39,6 +39,11 @@ option(NNG_ENABLE_COVERAGE "Enable coverage reporting." OFF)
# for the public library.
option(NNG_ELIDE_DEPRECATED "Elide deprecated functionality." OFF)
+# Turning off the compatibility layer can save some space, and
+# compilation time, but may break legacy applications It should
+# be left enabled when building a shared library.
+option(NNG_ENABLE_COMPAT "Enable legacy nanomsg API." ON)
+
option(NNG_ENABLE_STATS "Enable statistics." ON)
mark_as_advanced(NNG_ENABLE_STATS)