1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 19:46:38 +02:00

Replace calculate_libraries with inline CMake code.

This commit is contained in:
Sadie Powell
2025-10-05 16:03:59 +01:00
parent 0b3e55ed8f
commit 1a5d49b7f6
14 changed files with 89 additions and 139 deletions
+3 -3
View File
@@ -50,15 +50,15 @@ set_target_properties(${PROGRAM_NAME} PROPERTIES LINKER_LANGUAGE CXX LINK_FLAGS
# 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 ${LINK_LIBS} ${WIN32_MEMORY})
target_link_libraries(${PROGRAM_NAME} PUBLIC wsock32 Ws2_32 ${LINK_LIBS} ${WIN32_MEMORY})
set_target_properties(${PROGRAM_NAME} PROPERTIES VERSION "${VERSION_DOTTED}")
else()
target_link_libraries(${PROGRAM_NAME} ${LINK_LIBS})
target_link_libraries(${PROGRAM_NAME} PUBLIC ${LINK_LIBS})
endif()
# If being built with localisation we might need to link against libintl.
if(HAVE_LOCALIZATION AND Intl_LIBRARY)
target_link_libraries(${PROGRAM_NAME} ${Intl_LIBRARY})
target_link_libraries(${PROGRAM_NAME} PUBLIC ${Intl_LIBRARY})
endif()
# Building the Anope executable requires the version.h header to be generated