CMake: Issue warning if chainloaded toolchain file does not exist
Change-Id: Ib7e9b172c6e42feb074955786d49b071639ca86e Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>bb10
parent
3cb4f45ca8
commit
417ae745ec
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue