diff options
author | Adam <Adam@anope.org> | 2013-04-12 15:45:52 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-04-12 15:45:52 -0500 |
commit | 9a456263792769490c244e0cf46450a33ed14a91 (patch) | |
tree | 986da77eb6bdcc8517695ced2907ee58556ed9c0 /cmake | |
parent | 10d10d057e26b994ddc611c3d333e0d8a3b1c8fa (diff) |
Hack around calculate_depends not able to find libintl.h, since we deal with that later
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/Anope.cmake | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/cmake/Anope.cmake b/cmake/Anope.cmake index 3f9165106..90dff5b72 100644 --- a/cmake/Anope.cmake +++ b/cmake/Anope.cmake @@ -408,12 +408,16 @@ macro(calculate_depends SRC SKIP MODULE) endif(FOUND_IN_INCLUDES EQUAL -1) endif(FOUND_IN_DEFAULTS EQUAL -1) else(FOUND_${FILENAME}_INCLUDE) - set(${SKIP} TRUE) - if(NOT ${MODULE}) - message(FATAL_ERROR "${SRC} needs header file ${FILENAME} but we were unable to locate that header file! Check that the header file is within the search path of your OS.") - else(NOT ${MODULE}) - message(" ${SRC} can not be built due to missing dependencies - requires header file ${FILENAME}") - endif(NOT ${MODULE}) + if(${FILENAME} STREQUAL "libintl.h") + # XXX + else(${FILENAME} STREQUAL "libintl.h") + set(${SKIP} TRUE) + if(NOT ${MODULE}) + message(FATAL_ERROR "${SRC} needs header file ${FILENAME} but we were unable to locate that header file! Check that the header file is within the search path of your OS.") + else(NOT ${MODULE}) + message(" ${SRC} can not be built due to missing dependencies - requires header file ${FILENAME}") + endif(NOT ${MODULE}) + endif(${FILENAME} STREQUAL "libintl.h") endif(FOUND_${FILENAME}_INCLUDE) endif(CHECK_ANGLE_INCLUDES) endif(QUOTE_TYPE STREQUAL "angle brackets") |