From f71209a0b429cddcd44f1f2473c49e986c9b4be7 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 15 Jan 2017 18:34:29 -0800 Subject: Make sure to pass -DNNG_STATIC_LIB for static library. --- src/CMakeLists.txt | 1 + src/nng.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 *); -- cgit v1.2.3-70-g09d2