diff options
author | Constantin Wenger <constantin.wenger@googlemail.com> | 2011-07-23 22:36:11 +0200 |
---|---|---|
committer | Constantin Wenger <constantin.wenger@googlemail.com> | 2011-07-23 22:36:11 +0200 |
commit | f6d9bcc9bb020f79f73bc2cf0187f73a6d1d9275 (patch) | |
tree | ad3b84931b289802ce616a87934fcda7cad5536f /cmake | |
parent | 4771b4951d2e36794d8f077bdea2bdfcaec87b0b (diff) | |
download | minetest-f6d9bcc9bb020f79f73bc2cf0187f73a6d1d9275.tar.gz minetest-f6d9bcc9bb020f79f73bc2cf0187f73a6d1d9275.tar.bz2 minetest-f6d9bcc9bb020f79f73bc2cf0187f73a6d1d9275.zip |
updated cmakerules to autodetect if gettext can be used
fixed error if gettext is disabled
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/Modules/FindGettextLib.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/Modules/FindGettextLib.cmake b/cmake/Modules/FindGettextLib.cmake index b99fd33b8..1c36f8c6e 100644 --- a/cmake/Modules/FindGettextLib.cmake +++ b/cmake/Modules/FindGettextLib.cmake @@ -77,4 +77,7 @@ IF(GETTEXT_FOUND) STRING(REPLACE "<locale>" ${_locale} ${_buildvar} ${GETTEXT_MO_BUILD_PATH}) STRING(REPLACE "<locale>" ${_locale} ${_destvar} ${GETTEXT_MO_DEST_PATH}) ENDMACRO(SET_MO_PATHS) +ELSE() + SET(GETTEXT_INCLUDE_DIR "") + SET(GETTEXT_LIBRARY "") ENDIF() |