From 8af1b19a1a100e39e733885714bc29d721fcd3f4 Mon Sep 17 00:00:00 2001 From: Peter Rekdal Sunde Date: Tue, 11 Aug 2015 09:54:01 +0200 Subject: [PATCH] Link statedetection statically on Windows. --- src/statedetection/CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/statedetection/CMakeLists.txt b/src/statedetection/CMakeLists.txt index 3c15c6d..f65e7a9 100644 --- a/src/statedetection/CMakeLists.txt +++ b/src/statedetection/CMakeLists.txt @@ -7,8 +7,11 @@ set(statedetector_source_files state_detector_impl.cpp ) - -add_library(statedetection SHARED ${statedetector_source_files} ) +if (WIN32) + add_library(statedetection STATIC ${statedetector_source_files} ) +ELSE() + add_library(statedetection SHARED ${statedetector_source_files} ) +ENDIF() set_target_properties(statedetection PROPERTIES SOVERSION ${OPENALPR_MAJOR_VERSION})