Merge pull request #246 from OdyX/dev-fix-mxe-build
Only use PO4A on desktop file and manpages on non-Windows buildsdev-ui
commit
47bc95a47c
|
@ -73,15 +73,10 @@ if(NOT PLATFORM_WINDOWS)
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
else() # if(NOT PLATFORM_WINDOWS)
|
# Translate translatable material
|
||||||
set(COLOBOT_VERSION_4COMMAS "${COLOBOT_VERSION_MAJOR},${COLOBOT_VERSION_MINOR},${COLOBOT_VERSION_REVISION},0")
|
find_program(PO4A po4a)
|
||||||
configure_file(colobot.rc.cmake ${CMAKE_CURRENT_BINARY_DIR}/colobot.rc)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# Translate translatable material
|
if(PO4A)
|
||||||
find_program(PO4A po4a)
|
|
||||||
|
|
||||||
if(PO4A)
|
|
||||||
add_custom_target(desktop_po4a
|
add_custom_target(desktop_po4a
|
||||||
COMMAND ${PO4A} po4a.cfg
|
COMMAND ${PO4A} po4a.cfg
|
||||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
@ -101,5 +96,9 @@ if(PO4A)
|
||||||
add_dependencies(man${PM_LOCALE} man_po4a)
|
add_dependencies(man${PM_LOCALE} man_po4a)
|
||||||
endforeach()
|
endforeach()
|
||||||
endif()
|
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()
|
||||||
|
|
Loading…
Reference in New Issue