From f6257d7c65f1c083fe7d407803c3f53d6a2d9843 Mon Sep 17 00:00:00 2001 From: dmcbeing Date: Sat, 14 Oct 2017 17:34:13 +0300 Subject: [PATCH] Also build static version of libsigar Added generation of static version of libsigar. --- src/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 5b1dcb2ac..28d5c9871 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -99,6 +99,10 @@ SET(SIGAR_SRC ${SIGAR_SRC} ) ADD_LIBRARY(sigar SHARED ${SIGAR_SRC}) + +ADD_LIBRARY(sigar_static STATIC ${SIGAR_SRC}) +set_target_properties(sigar_static PROPERTIES OUTPUT_NAME sigar) + IF(WIN32) TARGET_LINK_LIBRARIES(sigar ws2_32 netapi32 version) ENDIF(WIN32)