aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-01-15 18:34:29 -0800
committerGarrett D'Amore <garrett@damore.org>2017-01-15 18:34:29 -0800
commitf71209a0b429cddcd44f1f2473c49e986c9b4be7 (patch)
tree7e9ef8ac4258bceafe4ee48d9a164b33a5266d3e /src
parent6f5c80df15707d367e888eabce7cbeb66ba8f5db (diff)
downloadnng-f71209a0b429cddcd44f1f2473c49e986c9b4be7.tar.gz
nng-f71209a0b429cddcd44f1f2473c49e986c9b4be7.tar.bz2
nng-f71209a0b429cddcd44f1f2473c49e986c9b4be7.zip
Make sure to pass -DNNG_STATIC_LIB for static library.
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt1
-rw-r--r--src/nng.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index c8168d76..12078195 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -123,6 +123,7 @@ endforeach ()
# Static libary
add_library (${PROJECT_NAME}_static STATIC ${NNG_SOURCES})
+target_compile_definitions(${PROJECT_NAME}_static PUBLIC -DNNG_STATIC_LIB)
# Shared library
add_library (${PROJECT_NAME} SHARED ${NNG_SOURCES})
diff --git a/src/nng.h b/src/nng.h
index cba6a596..58c2b774 100644
--- a/src/nng.h
+++ b/src/nng.h
@@ -160,7 +160,7 @@ NNG_DECL int nng_endpoint_dial(nng_endpoint *, int);
// the endpoint is not already dialing or listening.
NNG_DECL int nng_endpoint_listen(nng_endpoint *, int);
-// nng_endpoint_close closes the endpointt, shutting down all underlying
+// nng_endpoint_close closes the endpoint, shutting down all underlying
// connections and releasing all associated resources. It is an error to
// refer to the endpoint after this is called.
NNG_DECL int nng_endpoint_close(nng_endpoint *);