Pass -query and the identifier as separate args

This commit is contained in:
Uwe L. Korn 2013-11-18 11:20:08 +00:00
parent c5533ae683
commit 59084e3544
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ if(NOT QT_TRANSLATIONS_DIR)
get_target_property(QT5_QMAKE_EXECUTABLE Qt5::qmake IMPORTED_LOCATION)
# Ask Qt5 where to put the translations
EXEC_PROGRAM( ${QT5_QMAKE_EXECUTABLE}
ARGS "-query QT_INSTALL_TRANSLATIONS"
ARGS -query QT_INSTALL_TRANSLATIONS
OUTPUT_VARIABLE qt_translations_dir )
# make sure we have / and not \ as qmake gives on windows
FILE(TO_CMAKE_PATH "${qt_translations_dir}" qt_translations_dir)