summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Jeanmougin <marcjeanmougin@free.fr>2018-01-11 11:10:29 +0000
committerMarc Jeanmougin <marcjeanmougin@free.fr>2018-01-11 11:10:29 +0000
commita52d14ab89c335746bb9ec96080d72caacd8d813 (patch)
tree8218ca4a636266214b9b21f63ef84afe4b9ca38a
parentMerge branch 'escapefontspec' of gitlab.com:darktrojan/inkscape (diff)
parentDo not install static libraries (diff)
downloadinkscape-a52d14ab89c335746bb9ec96080d72caacd8d813.tar.gz
inkscape-a52d14ab89c335746bb9ec96080d72caacd8d813.zip
Merge branch 'static_libs' of gitlab.com:Ede123/inkscape
-rw-r--r--CMakeScripts/HelperMacros.cmake10
-rw-r--r--src/CMakeLists.txt15
2 files changed, 8 insertions, 17 deletions
diff --git a/CMakeScripts/HelperMacros.cmake b/CMakeScripts/HelperMacros.cmake
index 54bbf9d09..0f7d755fd 100644
--- a/CMakeScripts/HelperMacros.cmake
+++ b/CMakeScripts/HelperMacros.cmake
@@ -34,16 +34,6 @@ macro(add_inkscape_lib
# works fine without having the includes
# listed is helpful for IDE's (QtCreator/MSVC)
inkscape_source_group("${sources}")
-
- # 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()
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index de5419de8..342691151 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -559,19 +559,20 @@ target_link_libraries(inkview inkscape_base)
#Define the installation
if(NOT WIN32)
install(TARGETS
- inkscape_base
inkscape
inkview
- RUNTIME DESTINATION bin
- LIBRARY DESTINATION lib/inkscape
- ARCHIVE DESTINATION lib/inkscape)
+ RUNTIME DESTINATION bin)
+ if(BUILD_SHARED_LIBS)
+ install(TARGETS inkscape_base LIBRARY DESTINATION lib/inkscape)
+ endif()
else()
install(TARGETS
- inkscape_base
inkscape
inkscape_com
inkview
inkview_com
- RUNTIME DESTINATION .
- ARCHIVE DESTINATION .)
+ RUNTIME DESTINATION .)
+ if(BUILD_SHARED_LIBS)
+ install(TARGETS inkscape_base RUNTIME DESTINATION .)
+ endif()
endif()