forked from Mirrorlandia_minetest/minetest
Reorganize cmake gettext message output to ease debugging
This commit is contained in:
parent
56a744599f
commit
02b14090c2
@ -7,8 +7,6 @@ endif(RUN_IN_PLACE)
|
|||||||
|
|
||||||
if(USE_GETTEXT)
|
if(USE_GETTEXT)
|
||||||
find_package(GettextLib REQUIRED)
|
find_package(GettextLib REQUIRED)
|
||||||
if (GETTEXT_FOUND)
|
|
||||||
add_definitions( -DUSE_GETTEXT )
|
|
||||||
message(STATUS "gettext include path: ${GETTEXT_INCLUDE_DIR}")
|
message(STATUS "gettext include path: ${GETTEXT_INCLUDE_DIR}")
|
||||||
message(STATUS "gettext msgfmt path: ${GETTEXT_MSGFMT}")
|
message(STATUS "gettext msgfmt path: ${GETTEXT_MSGFMT}")
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
@ -16,9 +14,11 @@ if(USE_GETTEXT)
|
|||||||
message(STATUS "gettext dll: ${GETTEXT_DLL}")
|
message(STATUS "gettext dll: ${GETTEXT_DLL}")
|
||||||
message(STATUS "gettext iconv dll: ${GETTEXT_ICONV_DLL}")
|
message(STATUS "gettext iconv dll: ${GETTEXT_ICONV_DLL}")
|
||||||
endif()
|
endif()
|
||||||
|
if (GETTEXT_FOUND)
|
||||||
|
add_definitions( -DUSE_GETTEXT )
|
||||||
message(STATUS "GetText enabled")
|
message(STATUS "GetText enabled")
|
||||||
else()
|
else()
|
||||||
message(ERROR "GetText enabled but not found, disabling")
|
message(STATUS "ERROR: GetText enabled but not found, disabling")
|
||||||
set(USE_GETTEXT FALSE)
|
set(USE_GETTEXT FALSE)
|
||||||
endif(GETTEXT_FOUND)
|
endif(GETTEXT_FOUND)
|
||||||
else(USE_GETTEXT)
|
else(USE_GETTEXT)
|
||||||
|
Loading…
Reference in New Issue
Block a user