fixed not finding dll for gettext in MSVC
authorConstantin Wenger <constantin.wenger@googlemail.com>
Thu, 21 Jul 2011 14:21:01 +0000 (16:21 +0200)
committerConstantin Wenger <constantin.wenger@googlemail.com>
Thu, 21 Jul 2011 14:21:01 +0000 (16:21 +0200)
cmake/Modules/FindGettextLib.cmake

index 1bc92708a1475d16cc3944a69ca9a49226b741ad..f7ac8de5dd52fa83e6b59931ef931510b7f9f447 100644 (file)
@@ -31,11 +31,11 @@ IF (WIN32)
                NAMES ${GETTEXT_LIB_NAMES}
                PATHS "${CUSTOM_GETTEXT_PATH}/lib"
                DOC "gettext *intl*.lib")
-       FIND_LIBRARY(GETTEXT_DLL
+       FIND_FILE(GETTEXT_DLL
                NAMES libintl.dll intl.dll libintl3.dll intl3.dll
                PATHS "${CUSTOM_GETTEXT_PATH}/bin" "${CUSTOM_GETTEXT_PATH}/lib" 
                DOC "gettext *intl*.dll")
-       FIND_LIBRARY(GETTEXT_ICONV_DLL
+       FIND_FILE(GETTEXT_ICONV_DLL
                NAMES libiconv2.dll
                PATHS "${CUSTOM_GETTEXT_PATH}/bin" "${CUSTOM_GETTEXT_PATH}/lib"
                DOC "gettext *iconv*.lib")