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 ++++++-- src/CMakeLists.txt | 1 + src/tools/CMakeLists.txt | 1 + 3 files changed, 8 insertions(+), 2 deletions(-) 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}) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 9ca613eda..dcad8c83c 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -95,4 +95,5 @@ endif() # Set Anope to be installed to the bin directory install(TARGETS ${PROGRAM_NAME} DESTINATION ${BIN_DIR} + RUNTIME ) diff --git a/src/tools/CMakeLists.txt b/src/tools/CMakeLists.txt index 5aa833ea9..35dcc6139 100644 --- a/src/tools/CMakeLists.txt +++ b/src/tools/CMakeLists.txt @@ -18,6 +18,7 @@ foreach(SRC ${TOOLS_SRCS}) # Set the executable to be installed to the bin directory under the main directory install(TARGETS ${EXE} DESTINATION ${BIN_DIR} + RUNTIME ) # Add the executable to the list of files for CPack to ignore set(EXE_BINARY "$") -- cgit