diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-01-15 18:34:29 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-01-15 18:34:29 -0800 |
| commit | f71209a0b429cddcd44f1f2473c49e986c9b4be7 (patch) | |
| tree | 7e9ef8ac4258bceafe4ee48d9a164b33a5266d3e /src/CMakeLists.txt | |
| parent | 6f5c80df15707d367e888eabce7cbeb66ba8f5db (diff) | |
| download | nng-f71209a0b429cddcd44f1f2473c49e986c9b4be7.tar.gz nng-f71209a0b429cddcd44f1f2473c49e986c9b4be7.tar.bz2 nng-f71209a0b429cddcd44f1f2473c49e986c9b4be7.zip | |
Make sure to pass -DNNG_STATIC_LIB for static library.
Diffstat (limited to 'src/CMakeLists.txt')
| -rw-r--r-- | src/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 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}) |
