qt: set CMake QT_QMAKE_EXECUTABLE variable to cache

This commit is contained in:
Martin Müllenhaupt 2016-09-28 11:27:34 +02:00 committed by Martin Müllenhaupt
parent 487359e283
commit 941541e551
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ define $(PKG)_BUILD
`'$(TARGET)-pkg-config' QtGui --cflags --libs`
# setup cmake toolchain
echo 'set(QT_QMAKE_EXECUTABLE $(PREFIX)/$(TARGET)/qt/bin/qmake)' > '$(CMAKE_TOOLCHAIN_DIR)/$(PKG).cmake'
echo 'set(QT_QMAKE_EXECUTABLE $(PREFIX)/$(TARGET)/qt/bin/qmake CACHE FILEPATH "Qt4 qmake executable")' > '$(CMAKE_TOOLCHAIN_DIR)/$(PKG).cmake'
# fix static linking errors of QtGui to missing lcms2 and lzma
# introduced by poor libmng linking
echo 'set(MNG_LIBRARY mng lcms2 lzma)' >> '$(CMAKE_TOOLCHAIN_DIR)/$(PKG).cmake'