summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-04-12 17:19:29 -0400
committerAdam <Adam@anope.org>2013-04-12 17:19:29 -0400
commitb405484fb9f3039a5995550b2dff85d123875dee (patch)
tree33701261d24d74afd28c20e6f194e3ecc2ed25bc /modules
parent9a456263792769490c244e0cf46450a33ed14a91 (diff)
Fix OSX buld and a warning in modulemanager.cpp
Diffstat (limited to 'modules')
-rw-r--r--modules/CMakeLists.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/CMakeLists.txt b/modules/CMakeLists.txt
index 5a02b16b4..1ec4e1087 100644
--- a/modules/CMakeLists.txt
+++ b/modules/CMakeLists.txt
@@ -84,12 +84,15 @@ foreach(MODULE_FOLDER ${MODULES_FOLDERS})
if(GETTEXT_FOUND)
add_dependencies(${SO} module_language)
endif(GETTEXT_FOUND)
+ target_link_libraries(${SO} ${TEMP_DEPENDENCIES})
# For Windows only, have the module link to the export library of Anope as well as wsock32 and Ws2_32 libraries (most of the modules probably don't need this, but this is to be on the safe side), also set it's version
if(WIN32)
- target_link_libraries(${SO} ${PROGRAM_NAME} wsock32 Ws2_32 ${WIN32_MEMORY} ${TEMP_DEPENDENCIES})
+ target_link_libraries(${SO} ${PROGRAM_NAME} wsock32 Ws2_32 ${WIN32_MEMORY})
set_target_properties(${PROGRAM_NAME} PROPERTIES VERSION "${VERSION_DOTTED}")
else(WIN32)
- target_link_libraries(${SO} ${TEMP_DEPENDENCIES})
+ if(APPLE)
+ target_link_libraries(${SO} ${PROGRAM_NAME})
+ endif(APPLE)
endif(WIN32)
# Set the module to be installed to the module directory under the data directory
install(TARGETS ${SO}