summaryrefslogtreecommitdiff
path: root/cmake/Anope.cmake
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 /cmake/Anope.cmake
parent9db85375ee831885aceeba9e61b118ac7c4247a7 (diff)
Fixed building anopesmtp on Windows, fixed some cmake problems with calculate_depends, and fixed building without gettext
Diffstat (limited to 'cmake/Anope.cmake')
-rw-r--r--cmake/Anope.cmake8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmake/Anope.cmake b/cmake/Anope.cmake
index 6c257bf20..5a9cfcf76 100644
--- a/cmake/Anope.cmake
+++ b/cmake/Anope.cmake
@@ -365,12 +365,12 @@ endmacro(find_includes)
# header file dependencies for the given source file.
###############################################################################
macro(calculate_depends SRC SKIP)
- # Temporarily set that we didn't get a 2nd argument before we actually check if we did get one or not
+ # Temporarily set that we didn't get a 3nd argument before we actually check if we did get one or not
set(CHECK_ANGLE_INCLUDES FALSE)
- # Check for a second argument
- if(${ARGC} GREATER 1)
+ # Check for a third argument
+ if(${ARGC} GREATER 2)
set(CHECK_ANGLE_INCLUDES TRUE)
- endif(${ARGC} GREATER 1)
+ endif(${ARGC} GREATER 2)
# Find all the lines in the given source file that have any form of #include on them, regardless of whitespace, but only if they are valid for the platform we are on
find_includes(${SRC} INCLUDES)
# Reset the list of headers to empty