Added explicit linking of the libintl library on Unix systems where the gettext functions are not part of the C standard library

This commit is contained in:
Leon Styhre 2024-07-13 11:24:53 +02:00
parent 3c3143bad7
commit 9e8143820e

View file

@ -629,6 +629,11 @@ else()
${GIT2_LIBRARY}
${PUGIXML_LIBRARIES}
${SDL2_LIBRARY})
if(Intl_LIBRARY)
# On Unix systems where the gettext functions are not part of the C standard library
# we need to explicitly link with the libintl library.
set(COMMON_LIBRARIES ${COMMON_LIBRARIES} ${Intl_LIBRARY})
endif()
endif()
if(NOT WIN32)