From 4c0dbf08b7e1b057fa4c108dfd6ef02b267f0586 Mon Sep 17 00:00:00 2001 From: Eduard Braun Date: Tue, 9 May 2017 01:22:58 +0200 Subject: cmake: do not install static libraries on Windows (bzr r15679) --- CMakeScripts/HelperMacros.cmake | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'CMakeScripts') diff --git a/CMakeScripts/HelperMacros.cmake b/CMakeScripts/HelperMacros.cmake index d5e6d8536..a0bdd9866 100644 --- a/CMakeScripts/HelperMacros.cmake +++ b/CMakeScripts/HelperMacros.cmake @@ -34,10 +34,15 @@ macro(add_inkscape_lib # works fine without having the includes # listed is helpful for IDE's (QtCreator/MSVC) inkscape_source_group("${sources}") - install(TARGETS ${name} - LIBRARY DESTINATION lib/inkscape - ARCHIVE DESTINATION lib/inkscape - ) + + # static libraries are probably not useful on Windows + # (if we ever build shared libraries those would use the RUNTIME target and we might have to revisit this) + if(NOT WIN32) + install(TARGETS ${name} + LIBRARY DESTINATION lib/inkscape + ARCHIVE DESTINATION lib/inkscape + ) + endif() endmacro() -- cgit v1.2.3