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 + 1 file changed, 1 insertion(+) (limited to 'src/CMakeLists.txt') 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}) -- cgit v1.2.3-70-g09d2