CMake: Fix non-prefix builds

QT_WILL_INSTALL was set to ON, because an incorrect comparison was
done.

Amends 062318feb2d3b7598409c7e81e4459c2f4607764

Change-Id: I201aa2a183563ce05077c36ac2ba3bd61cc827c0
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
Alexandru Croitor 2020-07-02 17:35:41 +02:00
parent 0d55d1c640
commit 1b7a0bcbb5

View File

@ -77,7 +77,7 @@ if (PROJECT_NAME STREQUAL "QtBase" AND NOT QT_BUILD_STANDALONE_TESTS)
if(CMAKE_CROSSCOMPILING)
set(__qt_prefix "${CMAKE_STAGING_PREFIX}")
else()
set(__qt_prefix_ "")
set(__qt_prefix "")
endif()
if(__qt_prefix STREQUAL "")
set(__qt_prefix "${CMAKE_INSTALL_PREFIX}")