diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-01-25 23:34:41 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-01-27 16:54:54 -0800 |
| commit | d6f0c13355199173dd7a2957dc2bae54bb5d85c3 (patch) | |
| tree | 92d70a3bfcad8896714dcbaa0930a21dd04605d1 /src/CMakeLists.txt | |
| parent | 463b2fe68fb55898d66a7d89064ad76c67083501 (diff) | |
| download | nng-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 'src/CMakeLists.txt')
| -rw-r--r-- | src/CMakeLists.txt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 20a7bef0..ab33292d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,5 +1,5 @@ # -# Copyright 2021 Staysail Systems, Inc. <info@staysail.tech> +# Copyright 2024 Staysail Systems, Inc. <info@staysail.tech> # Copyright 2018 Capitar IT Group BV <info@capitar.com> # # This software is supplied under the terms of the MIT License, a @@ -16,12 +16,15 @@ target_include_directories(nng_testing PRIVATE ${PROJECT_SOURCE_DIR}/src) add_subdirectory(core) add_subdirectory(platform) -add_subdirectory(compat) add_subdirectory(sp) add_subdirectory(supplemental) add_subdirectory(tools) add_subdirectory(testing) +if (NNG_ENABLE_COMPAT) + add_subdirectory(compat) +endif() + # When building shared libraries we prefer to suppress default symbol # visibility, so that only the symbols that should be exposed in the # resulting library are. This is the default with Windows. |
