diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-10-07 10:31:40 +0200 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-10-07 13:26:03 +0200 |
commit | 417ae745ec05c92ee132fb5532e5b3c16e1f2e64 (patch) | |
tree | 4bf417926553586bc3dfc8c4f5decdc7f41bb405 /cmake/qt.toolchain.cmake.in | |
parent | 3cb4f45ca8476aee0e67caae159d3fbb80354c54 (diff) |
CMake: Issue warning if chainloaded toolchain file does not exist
Change-Id: Ib7e9b172c6e42feb074955786d49b071639ca86e
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake/qt.toolchain.cmake.in')
-rw-r--r-- | cmake/qt.toolchain.cmake.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/qt.toolchain.cmake.in b/cmake/qt.toolchain.cmake.in index fcc31eea0c..1f8f90edb8 100644 --- a/cmake/qt.toolchain.cmake.in +++ b/cmake/qt.toolchain.cmake.in @@ -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() |