From 3bb44f3804b9c399d51430b75ae364184fd25cbe Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Tue, 30 Jun 2020 15:36:04 +0100 Subject: [PATCH] Don't install the import library for the 3dsg library No one on Windows should be linking to it outside of the build process, so there is no need for it in the installer Fixes https://gitlab.com/kicad/code/kicad/issues/1842 --- 3d-viewer/3d_cache/sg/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/3d-viewer/3d_cache/sg/CMakeLists.txt b/3d-viewer/3d_cache/sg/CMakeLists.txt index 6e3aeb2156..6a3ff2f395 100644 --- a/3d-viewer/3d_cache/sg/CMakeLists.txt +++ b/3d-viewer/3d_cache/sg/CMakeLists.txt @@ -95,8 +95,12 @@ target_compile_definitions( kicad_3dsg PRIVATE -DCOMPILE_SGLIB ) target_link_libraries( kicad_3dsg ${wxWidgets_LIBRARIES} ) +# Don't specify the ARCHIVE DESTINATION parameter to prevent +# the install of the import library on Windows +# https://cmake.org/pipermail/cmake/2011-November/047746.html install( TARGETS kicad_3dsg - DESTINATION ${KICAD_LIB} + RUNTIME DESTINATION ${KICAD_LIB} + LIBRARY DESTINATION ${KICAD_LIB} COMPONENT binary )