From 417ae745ec05c92ee132fb5532e5b3c16e1f2e64 Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Wed, 7 Oct 2020 10:31:40 +0200 Subject: CMake: Issue warning if chainloaded toolchain file does not exist Change-Id: Ib7e9b172c6e42feb074955786d49b071639ca86e Reviewed-by: Alexandru Croitor --- cmake/qt.toolchain.cmake.in | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cmake/qt.toolchain.cmake.in') 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() -- cgit v1.2.3