From bf8e4ac71484cfe30bcddd02cb91900875dc34b2 Mon Sep 17 00:00:00 2001 From: Naram Qashat Date: Sun, 20 Nov 2011 16:09:59 -0500 Subject: Attempt to fix where link libraries are set when compiling to fix failed builds on systems that require -ldl. --- src/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a51bc3057..a00c53d98 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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 -- cgit