1
0
mirror of https://github.com/anope/anope.git synced 2026-07-09 04:03:13 +02:00

Really fix linking in libraries (even if gettext isn't found on *nix), and a minor nitpick about the leading spaces on LINK_LIBS.

This commit is contained in:
Naram Qashat
2011-11-20 18:32:47 -05:00
parent bf8e4ac714
commit 5a17b060fe
2 changed files with 6 additions and 0 deletions
+4
View File
@@ -357,6 +357,10 @@ endif(CXXFLAGS)
if(LDFLAGS)
strip_string(${LDFLAGS} LDFLAGS)
endif(LDFLAGS)
# Strip the leading and trailing spaces from the link libraries
if(LINK_LIBS)
strip_string(${LINK_LIBS} LINK_LIBS)
endif(LINK_LIBS)
# Search for the following programs
find_program(GREP grep)
+2
View File
@@ -98,6 +98,8 @@ if(WIN32)
else(WIN32)
if(GETTEXT_LIBRARIES)
target_link_libraries(${PROGRAM_NAME} ${LINK_LIBS} ${GETTEXT_LIBRARIES})
else(GETTEXT_LIBRARIES)
target_link_libraries(${PROGRAM_NAME} ${LINK_LIBS})
endif(GETTEXT_LIBRARIES)
endif(WIN32)
# Building the Anope executable requires the version.h header to be generated