summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-11-01 16:07:18 -0400
committerAdam <Adam@anope.org>2010-11-01 16:07:18 -0400
commit3edc6d70b9b7d3da642f46c90a876a606ba76ab3 (patch)
tree4f7484ec56851895c23761f1c85f74d81d26e571 /src/tools
parent9db85375ee831885aceeba9e61b118ac7c4247a7 (diff)
Fixed building anopesmtp on Windows, fixed some cmake problems with calculate_depends, and fixed building without gettext
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/CMakeLists.txt9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/tools/CMakeLists.txt b/src/tools/CMakeLists.txt
index 386591c42..081470766 100644
--- a/src/tools/CMakeLists.txt
+++ b/src/tools/CMakeLists.txt
@@ -19,6 +19,10 @@ foreach(SRC ${TOOLS_SRCS})
add_executable(${EXE} ${SRC})
set_target_properties(${EXE} PROPERTIES LINKER_LANGUAGE CXX LINK_FLAGS "${LDFLAGS}")
add_dependencies(${EXE} ${PROGRAM_NAME})
+ # Only for Windows, set anopesmtp to require the wsock32 library
+ if(WIN32 AND ${EXE} STREQUAL anopesmtp)
+ target_link_libraries(${EXE} wsock32)
+ endif(WIN32 AND ${EXE} STREQUAL anopesmtp)
# Set the executable to be installed to the bin directory under the main directory
install(TARGETS ${EXE}
DESTINATION bin
@@ -30,11 +34,6 @@ foreach(SRC ${TOOLS_SRCS})
endif(NOT SKIP)
endforeach(SRC)
-# Only for Windows, set anopesmtp to require the wsock32 library
-if(WIN32)
- target_link_libraries(anopesmtp wsock32)
-endif(WIN32)
-
# On non-Windows platforms, if RUNGROUP is set, change the permissions of the tools directory
if(NOT WIN32 AND RUNGROUP)
install(CODE "execute_process(COMMAND ${CHMOD} 2770 \"\${CMAKE_INSTALL_PREFIX}/bin\")")