Make the dummy locales a target.
This commit is contained in:
parent
381c2a786c
commit
7d35a0bf81
1 changed files with 4 additions and 2 deletions
|
@ -67,6 +67,7 @@ option(ENABLE_EDITOR "Enable compilation of the new map editor into the game exe
|
|||
option(ENABLE_TOOLS "Enable building and installation of tools for artists and WML maintainers")
|
||||
option(ENABLE_TESTS "Build unit tests")
|
||||
option(ENABLE_NLS "Enable building of tranlations" ON)
|
||||
option(ENABLE_DUMMY_LOCALES "Enable installation of Wesnoth own private locales" OFF)
|
||||
option(ENABLE_POOL_ALLOC "Enable custom pool malloc" OFF)
|
||||
option(ENABLE_LOW_MEM "Reduce memory usage by removing extra functionality" OFF)
|
||||
if (UNIX AND NOT APPLE AND NOT CYGWIN)
|
||||
|
@ -187,10 +188,11 @@ add_subdirectory(doc)
|
|||
if (GETTEXT_FOUND AND ENABLE_NLS)
|
||||
add_subdirectory(po)
|
||||
find_program (LOCALEDEF localedef)
|
||||
if (LOCALEDEF)
|
||||
if (LOCALEDEF AND ENABLE_DUMMY_LOCALES)
|
||||
#
|
||||
#create dummy-locales
|
||||
#
|
||||
add_definitions(-DUSE_DUMMYLOCALES)
|
||||
|
||||
set(DUMMY_LOCALE_C_DIR ${CMAKE_SOURCE_DIR}/locales/C)
|
||||
|
||||
|
@ -218,7 +220,7 @@ if (GETTEXT_FOUND AND ENABLE_NLS)
|
|||
# this is a workaround for a bug in 2.4-7
|
||||
file(MAKE_DIRECTORY locales)
|
||||
install(DIRECTORY locales DESTINATION ${DATADIR} USE_SOURCE_PERMISSIONS )
|
||||
endif (LOCALEDEF)
|
||||
endif (LOCALEDEF AND ENABLE_DUMMY_LOCALES)
|
||||
endif (GETTEXT_FOUND AND ENABLE_NLS)
|
||||
add_subdirectory(src)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue