Only use PO4A on desktop file and manpages on non-Windows builds

Fixes the MXE-with-PO4A build
dev-ui
Didier 'OdyX' Raboud 2013-11-05 15:00:02 +01:00
parent d8e50e4eeb
commit 116d72a4b7
1 changed files with 26 additions and 27 deletions

View File

@ -73,15 +73,10 @@ if(NOT PLATFORM_WINDOWS)
endif()
else() # if(NOT PLATFORM_WINDOWS)
set(COLOBOT_VERSION_4COMMAS "${COLOBOT_VERSION_MAJOR},${COLOBOT_VERSION_MINOR},${COLOBOT_VERSION_REVISION},0")
configure_file(colobot.rc.cmake ${CMAKE_CURRENT_BINARY_DIR}/colobot.rc)
endif()
# Translate translatable material
find_program(PO4A po4a)
# Translate translatable material
find_program(PO4A po4a)
if(PO4A)
if(PO4A)
add_custom_target(desktop_po4a
COMMAND ${PO4A} po4a.cfg
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
@ -101,5 +96,9 @@ if(PO4A)
add_dependencies(man${PM_LOCALE} man_po4a)
endforeach()
endif()
endif()
endif()
else() # if(NOT PLATFORM_WINDOWS)
set(COLOBOT_VERSION_4COMMAS "${COLOBOT_VERSION_MAJOR},${COLOBOT_VERSION_MINOR},${COLOBOT_VERSION_REVISION},0")
configure_file(colobot.rc.cmake ${CMAKE_CURRENT_BINARY_DIR}/colobot.rc)
endif()