1
0
Fork 0

Fix build when translations are not defined

This commit is contained in:
James Turner 2018-08-28 16:15:26 +01:00
parent df7e13d734
commit f99a25ba7f

View file

@ -125,7 +125,6 @@ if (HAVE_QT)
set_property(TARGET fglauncher PROPERTY AUTOMOC ON)
target_link_libraries(fglauncher Qt5::Core Qt5::Widgets Qt5::Network Qt5::Qml Qt5::Quick Qt5::Svg SimGearCore)
target_include_directories(fglauncher PRIVATE ${PROJECT_BINARY_DIR}/src/GUI)
add_dependencies(fglauncher fgfs_qm_files)
add_library(fgqmlui QQuickDrawable.cxx
QQuickDrawable.hxx
@ -166,7 +165,11 @@ if (HAVE_QT)
set_property(TARGET fgqmlui PROPERTY AUTOMOC ON)
target_link_libraries(fgqmlui Qt5::Quick Qt5::Widgets Qt5::Network Qt5::Qml SimGearCore)
target_include_directories(fgqmlui PRIVATE ${PROJECT_BINARY_DIR}/src/GUI)
add_dependencies(fgqmlui fgfs_qm_files)
if (TARGET fgfs_qm_files)
add_dependencies(fglauncher fgfs_qm_files)
add_dependencies(fgqmlui fgfs_qm_files)
endif()
endif()