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 /src/CMakeLists.txt | |
parent | 670c928a9f10c37aca748fe6bd0ddda741f7d7d9 (diff) |
Fixed some cmake warnings
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a01b608a4..d564a8965 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -96,8 +96,12 @@ else(WIN32) target_link_libraries(${PROGRAM_NAME} ${GETTEXT_LIBRARIES}) endif(GETTEXT_LIBRARIES) endif(WIN32) -# Building the Anope executable requires the language files to be compiled first as well as the version.h header to be generated -add_dependencies(${PROGRAM_NAME} language headers) +# Building the Anope executable requires the version.h header to be generated +add_dependencies(${PROGRAM_NAME} headers) +# Also require the language files if we have gettext +if(GETTEXT_FOUND) + add_dependencies(${PROGRAM_NAME} language) +endif(GETTEXT_FOUND) # Get the filename of the Anope executable as it is in on this system get_target_property(SERVICES_BINARY ${PROGRAM_NAME} LOCATION) |