33 lines
894 B
Plaintext
33 lines
894 B
Plaintext
$OpenBSD: patch-src_CMakeLists_txt,v 1.2 2012/11/26 16:03:31 sthen Exp $
|
|
Properly link/find libintl/iconv
|
|
--- src/CMakeLists.txt.orig Tue Sep 4 23:31:06 2012
|
|
+++ src/CMakeLists.txt Sat Nov 24 14:29:37 2012
|
|
@@ -14,6 +14,8 @@ set(USE_GETTEXT 0)
|
|
|
|
if(ENABLE_GETTEXT)
|
|
find_package(GettextLib)
|
|
+ find_package(Iconv)
|
|
+ find_package(Libintl)
|
|
else()
|
|
MARK_AS_ADVANCED(GETTEXT_ICONV_DLL GETTEXT_INCLUDE_DIR GETTEXT_LIBRARY GETTEXT_MSGFMT)
|
|
endif()
|
|
@@ -296,7 +298,8 @@ if(BUILD_CLIENT)
|
|
${BZIP2_LIBRARIES}
|
|
${PNG_LIBRARIES}
|
|
${X11_LIBRARIES}
|
|
- ${GETTEXT_LIBRARY}
|
|
+ ${ICONV_LIBRARIES}
|
|
+ ${LIBINTL_LIBRARIES}
|
|
${SOUND_LIBRARIES}
|
|
${JTHREAD_LIBRARY}
|
|
${SQLITE3_LIBRARY}
|
|
@@ -311,6 +314,8 @@ if(BUILD_SERVER)
|
|
target_link_libraries(
|
|
${PROJECT_NAME}server
|
|
${ZLIB_LIBRARIES}
|
|
+ ${ICONV_LIBRARIES}
|
|
+ ${LIBINTL_LIBRARIES}
|
|
${JTHREAD_LIBRARY}
|
|
${SQLITE3_LIBRARY}
|
|
${LUA_LIBRARY}
|