From 3e5d3c5bdc2f52982529bd6cbf8e1edf914ec163 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 15 Apr 2024 12:35:36 +0100 Subject: Avoid packaging unnecessary .lib files on Windows. [skip alpine ci] [skip ubuntu ci] --- modules/CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/CMakeLists.txt b/modules/CMakeLists.txt index aa9e963c4..777f080f0 100644 --- a/modules/CMakeLists.txt +++ b/modules/CMakeLists.txt @@ -94,7 +94,9 @@ macro(build_modules SRC) target_link_libraries(${SO} ${PROGRAM_NAME}) endif() # Set the module to be installed to the module directory under the data directory - install(TARGETS ${SO} DESTINATION ${MODULE_DIR}) + install(TARGETS ${SO} + DESTINATION ${MODULE_DIR} + LIBRARY) endif() endif() endforeach() @@ -168,7 +170,9 @@ macro(build_subdir) endif() # Set the module to be installed to the module directory under the data directory - install(TARGETS ${SO} DESTINATION ${MODULE_DIR}) + install(TARGETS ${SO} + DESTINATION ${MODULE_DIR} + LIBRARY) endmacro() include_directories(${CMAKE_CURRENT_SOURCE_DIR}) -- cgit