Commit b31b039b authored by Jan Möbius's avatar Jan Möbius
Browse files

Dennis:

Fix translation files on windows



git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@6859 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 99587413
...@@ -502,11 +502,14 @@ function (acg_add_translations _target _languages _sources) ...@@ -502,11 +502,14 @@ function (acg_add_translations _target _languages _sources)
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/Build/${ACG_PROJECT_DATADIR}/Translations ) file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/Build/${ACG_PROJECT_DATADIR}/Translations )
endif () endif ()
add_custom_command (TARGET translations_target_${_target} POST_BUILD foreach (_qm ${_qm_files})
COMMAND ${CMAKE_COMMAND} -E get_filename_component (_qm_name "${_qm}" NAME)
copy_if_different add_custom_command (TARGET translations_target_${_target} POST_BUILD
${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/*.qm COMMAND ${CMAKE_COMMAND} -E
${CMAKE_BINARY_DIR}/Build/${ACG_PROJECT_DATADIR}/Translations/ ) copy_if_different
${_qm}
${CMAKE_BINARY_DIR}/Build/${ACG_PROJECT_DATADIR}/Translations/${_qm_name})
endforeach ()
if (NOT ACG_PROJECT_MACOS_BUNDLE OR NOT APPLE) if (NOT ACG_PROJECT_MACOS_BUNDLE OR NOT APPLE)
install (FILES ${_qm_files} DESTINATION "${CMAKE_INSTALL_PREFIX}/Translations") install (FILES ${_qm_files} DESTINATION "${CMAKE_INSTALL_PREFIX}/Translations")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment