From 9e8143820e3f57308282cdf77ce1e72390e21d3b Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sat, 13 Jul 2024 11:24:53 +0200 Subject: [PATCH] Added explicit linking of the libintl library on Unix systems where the gettext functions are not part of the C standard library --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ff714cf5a..082f9defd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)