1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 05:33:12 +02:00

Attempt to fix where link libraries are set when compiling to fix failed builds on systems that require -ldl.

This commit is contained in:
Naram Qashat
2011-11-20 16:09:59 -05:00
parent 781ed11ba8
commit bf8e4ac714
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -93,11 +93,11 @@ add_executable(${PROGRAM_NAME} ${SRC_SRCS})
set_target_properties(${PROGRAM_NAME} PROPERTIES LINKER_LANGUAGE CXX LINK_FLAGS "${LDFLAGS}" ENABLE_EXPORTS ON)
# On Windows, also link Anope to the wsock32 and Ws2_32 library, as well as set the version
if(WIN32)
target_link_libraries(${PROGRAM_NAME} wsock32 Ws2_32 ${GETTEXT_LIBRARIES} ${WIN32_MEMORY})
target_link_libraries(${PROGRAM_NAME} wsock32 Ws2_32 ${LINK_LIBS} ${GETTEXT_LIBRARIES} ${WIN32_MEMORY})
set_target_properties(${PROGRAM_NAME} PROPERTIES VERSION "${VERSION_DOTTED}")
else(WIN32)
if(GETTEXT_LIBRARIES)
target_link_libraries(${PROGRAM_NAME} ${GETTEXT_LIBRARIES})
target_link_libraries(${PROGRAM_NAME} ${LINK_LIBS} ${GETTEXT_LIBRARIES})
endif(GETTEXT_LIBRARIES)
endif(WIN32)
# Building the Anope executable requires the version.h header to be generated