ports/sysutils/dfc/patches/patch-CMakeLists_txt

21 lines
576 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Index: CMakeLists.txt
--- CMakeLists.txt.orig
+++ CMakeLists.txt
@@ -104,6 +104,7 @@ endif()
# Check for libintl
find_package(Libintl)
+find_library(LIBICONV_LIBRARIES NAMES iconv)
if (LIBINTL_FOUND)
option(NLS_ENABLED "Translation support with gettext" on)
else()
@@ -191,7 +192,7 @@ if(NLS_ENABLED)
add_subdirectory(po)
include_directories(${LIBINTL_INCLUDE_DIR})
- target_link_libraries(${EXECUTABLE_NAME} ${LIBINTL_LIBRARIES})
+ target_link_libraries(${EXECUTABLE_NAME} ${LIBICONV_LIBRARIES} ${LIBINTL_LIBRARIES})
endif()
# link libraries