From 9a1b0a8c63528142b17bfc81ecfe44031a74a91b Mon Sep 17 00:00:00 2001 From: Eduard Braun Date: Tue, 9 Jan 2018 23:42:22 +0100 Subject: Do not install static libraries --- src/CMakeLists.txt | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src') 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() -- cgit v1.2.3