aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-07-21 14:50:15 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-07-21 14:50:15 +0200
commit02695bebc632042dd684991665b93925b974d7d4 (patch)
tree2e0d1bbf2672a356e82fd1c0f3010615605811e8 /cmake
parent7b93fb59cfbc9d89e13b8046634c0ab5a1a4a691 (diff)
downloadminetest-02695bebc632042dd684991665b93925b974d7d4.tar.gz
minetest-02695bebc632042dd684991665b93925b974d7d4.tar.bz2
minetest-02695bebc632042dd684991665b93925b974d7d4.zip
Find correct library for MSVC vs MingW in Winows
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Modules/FindGettextLib.cmake9
1 files changed, 8 insertions, 1 deletions
diff --git a/cmake/Modules/FindGettextLib.cmake b/cmake/Modules/FindGettextLib.cmake
index 3fb391e65..1bc92708a 100644
--- a/cmake/Modules/FindGettextLib.cmake
+++ b/cmake/Modules/FindGettextLib.cmake
@@ -20,8 +20,15 @@ FIND_PROGRAM(GETTEXT_MSGFMT
# they do not because gettext is part of glibc
# TODO check the requirements on other BSDs and older Linux
IF (WIN32)
+ IF(MSVC)
+ SET(GETTEXT_LIB_NAMES
+ libintl.lib intl.lib libintl3.lib intl3.lib)
+ ELSE()
+ SET(GETTEXT_LIB_NAMES
+ libintl.dll.a intl.dll.a libintl3.dll.a intl3.dll.a)
+ ENDIF()
FIND_LIBRARY(GETTEXT_LIBRARY
- NAMES libintl.lib intl.lib libintl3.lib intl3.lib
+ NAMES ${GETTEXT_LIB_NAMES}
PATHS "${CUSTOM_GETTEXT_PATH}/lib"
DOC "gettext *intl*.lib")
FIND_LIBRARY(GETTEXT_DLL