diff options
author | Naram Qashat <cyberbotx@cyberbotx.com> | 2011-11-20 16:09:59 -0500 |
---|---|---|
committer | Naram Qashat <cyberbotx@cyberbotx.com> | 2011-11-20 16:09:59 -0500 |
commit | bf8e4ac71484cfe30bcddd02cb91900875dc34b2 (patch) | |
tree | 542b131260c6ffd38a98d1ce28a67ff892840c8b /src | |
parent | 781ed11ba82dddac72976bd271adc44314a0221f (diff) |
Attempt to fix where link libraries are set when compiling to fix failed builds on systems that require -ldl.
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
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 |