CMake: Issue warning if chainloaded toolchain file does not exist

Change-Id: Ib7e9b172c6e42feb074955786d49b071639ca86e
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
bb10
Joerg Bornemann 2020-10-07 10:31:40 +02:00
parent 3cb4f45ca8
commit 417ae745ec
1 changed files with 3 additions and 0 deletions

View File

@ -16,6 +16,9 @@ if(__qt_chainload_toolchain_file)
"Make sure to remove qtbase/CMakeCache.txt and reconfigure qtbase with 'cmake' "
"rather than 'qt-cmake', and then you can reconfigure your own project."
)
elseif(NOT EXISTS "${__qt_chainload_toolchain_file_real_path}")
message(WARNING "The toolchain file to be chainloaded "
"'${__qt_chainload_toolchain_file}' does not exist.")
else()
include("${__qt_chainload_toolchain_file}")
endif()