diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2021-08-27 11:43:04 +0200 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2021-08-27 16:29:49 +0200 |
commit | f9e9d21a11cdbb7d79daefba10717de39edf9fd1 (patch) | |
tree | ba503ad0229fe722fdf397a53b7a90d292ef8e80 /cmake | |
parent | d94652f7927945f988f2c99cee98076efd5c1d79 (diff) |
CMake: Error out if ccache is requested but not found
Before, we would just issue a warning which is likely to get overlooked
in CMake's output. Also, the configure summary would report "Using
ccache ... yes" but CMAKE_<LANG>_COMPILER_LAUNCHER stays unset, which is
inconsistent.
Make QT_USE_CCACHE=ON and missing ccache a hard error.
Task-number: QTBUG-88308
Change-Id: Iddc7f3a91428fd96ad0defbb1ca72bd46a90aa98
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/QtSetup.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/QtSetup.cmake b/cmake/QtSetup.cmake index 17357dc1a4..695245d66e 100644 --- a/cmake/QtSetup.cmake +++ b/cmake/QtSetup.cmake @@ -228,7 +228,7 @@ if(QT_USE_CCACHE) set(CMAKE_OBJC_COMPILER_LAUNCHER "${CCACHE_PROGRAM}") set(CMAKE_OBJCXX_COMPILER_LAUNCHER "${CCACHE_PROGRAM}") else() - message(WARNING "Ccache use was requested, but the program was not found.") + message(FATAL_ERROR "Ccache use was requested, but the program was not found.") endif() endif() |