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:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user