diff options
| author | Adam <Adam@anope.org> | 2011-08-27 20:47:30 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2011-08-27 20:47:30 -0400 |
| commit | 28e8190e6bc96f2f3f4c53d611fc349d50092c3f (patch) | |
| tree | 10960a97f4fa292624739779f0244d226533837c /modules | |
| parent | 670c928a9f10c37aca748fe6bd0ddda741f7d7d9 (diff) | |
Fixed some cmake warnings
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/CMakeLists.txt | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/modules/CMakeLists.txt b/modules/CMakeLists.txt index d4bd3f7a1..6fa017fd6 100644 --- a/modules/CMakeLists.txt +++ b/modules/CMakeLists.txt @@ -77,7 +77,10 @@ foreach(MODULE_FOLDER ${MODULES_FOLDERS}) set(WIN32_NO_LIBS) endif(WIN32) set_target_properties(${SO} PROPERTIES LINKER_LANGUAGE CXX PREFIX "" SUFFIX "" LINK_FLAGS "${TEMP_LDFLAGS} ${WIN32_NO_LIBS}") - add_dependencies(${SO} ${PROGRAM_NAME} module_language) + add_dependencies(${SO} ${PROGRAM_NAME}) + if(GETTEXT_FOUND) + add_dependencies(${SO} module_language) + endif(GETTEXT_FOUND) # 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}) @@ -174,7 +177,10 @@ foreach(MODULE_FOLDER ${MODULES_FOLDERS}) # Generate the module and set it's linker flags, also set it to depend on the main Anope executable to be built beforehand add_library(${SO} MODULE ${MODULES_SUBDIR_SRCS}) set_target_properties(${SO} PROPERTIES LINKER_LANGUAGE CXX PREFIX "" SUFFIX "" LINK_FLAGS "${SUBDIR_LDFLAGS}") - add_dependencies(${SO} ${PROGRAM_NAME} module_language) + add_dependencies(${SO} ${PROGRAM_NAME}) + if(GETTEXT_FOUND) + add_dependencies(${SO} module_language) + endif(GETTEXT_FOUND) # 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} ${SUBDIR_EXTRA_DEPENDS}) |
