summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/CMakeLists.txt8
-rw-r--r--src/CMakeLists.txt1
-rw-r--r--src/tools/CMakeLists.txt1
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}>")