diff options
| author | Sadie Powell <sadie@witchery.services> | 2024-04-15 12:35:36 +0100 |
|---|---|---|
| committer | Sadie Powell <sadie@witchery.services> | 2024-04-15 12:41:56 +0100 |
| commit | 3e5d3c5bdc2f52982529bd6cbf8e1edf914ec163 (patch) | |
| tree | a82033e9a37869ced3b48c73ccdd6861b4db18e8 | |
| parent | 62deedfa755d9c7e20be59e513ce27e087419f3b (diff) | |
Avoid packaging unnecessary .lib files on Windows.
[skip alpine ci]
[skip ubuntu ci]
| -rw-r--r-- | modules/CMakeLists.txt | 8 | ||||
| -rw-r--r-- | src/CMakeLists.txt | 1 | ||||
| -rw-r--r-- | 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 "$<TARGET_FILE:${EXE}>") |
