aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorEvgeny Ermakov <22344340+unspecd@users.noreply.github.com>2021-01-02 04:09:55 -0500
committerGitHub <noreply@github.com>2021-01-02 01:09:55 -0800
commit44b8e23f39e4753ba8e9b7999dd5158adaecb5dc (patch)
tree4ef7a61c40332be2520610a004b75983f329ac64 /CMakeLists.txt
parented542ac45e00c9b2faa0b41f3c00de6e291e5678 (diff)
downloadnng-44b8e23f39e4753ba8e9b7999dd5158adaecb5dc.tar.gz
nng-44b8e23f39e4753ba8e9b7999dd5158adaecb5dc.tar.bz2
nng-44b8e23f39e4753ba8e9b7999dd5158adaecb5dc.zip
Fix compilation errors when NNG_ELIDE_DEPRECATED is ON (#1392)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index acd2a7f0..ebcce7f3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -94,7 +94,7 @@ add_library(nng_private INTERFACE)
target_compile_definitions(nng_private INTERFACE NNG_PRIVATE)
if (NNG_ELIDE_DEPRECATED)
- target_compile_definitions(nng, NNG_ELIDE_DEPRECATED)
+ target_compile_definitions(nng PRIVATE NNG_ELIDE_DEPRECATED)
endif()