Fix translations variable where no translations data
This commit is contained in:
parent
c537bbcfe7
commit
c5840b1039
1 changed files with 2 additions and 1 deletions
|
@ -11,6 +11,7 @@ elseif(EXISTS ${FGDATA_SRC_DIR})
|
|||
set(do_translate TRUE)
|
||||
else()
|
||||
message(STATUS "Couldn't find translations data, will not include translated string in the executable")
|
||||
set(do_translate FALSE)
|
||||
endif()
|
||||
|
||||
find_package(Qt5 5.4 COMPONENTS LinguistTools)
|
||||
|
@ -55,4 +56,4 @@ if (${do_translate})
|
|||
|
||||
# set this so config.h can detect it
|
||||
set(HAVE_QRC_TRANSLATIONS TRUE)
|
||||
endif() # of do translate
|
||||
endif() # of do translate
|
||||
|
|
Loading…
Add table
Reference in a new issue