1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00

Make translation directory before building the mapeditor

This commit is contained in:
gigas002 2024-06-06 20:33:41 +09:00
parent c8aa8bb18d
commit 410ef23a49

View File

@ -127,7 +127,8 @@ set(editor_TS
)
if(ENABLE_TRANSLATIONS)
if(TARGET Qt5::Core)
set_source_files_properties(${editor_TS} PROPERTIES OUTPUT_LOCATION "${CMAKE_CURRENT_BINARY_DIR}/${translationsDir}")
file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/${translationsDir}")
set_source_files_properties(${editor_TS} PROPERTIES OUTPUT_LOCATION "${translationsDir}")
qt5_add_translation(editor_QM ${editor_TS})
set(translationsResource "${CMAKE_CURRENT_BINARY_DIR}/translations.qrc")