qt5base-lts/cmake/QtBuildInternals
Joerg Bornemann fb9cc52920 Rework how installation is prevented in non-prefix builds
In non-prefix builds, we want to prevent users from accidentally running
"cmake --install".  We did that by replacing cmake_install.cmake with an
empty file.

The responsible target remove_cmake_install is visible in IDEs, appears
in the build output, and the approach is hacky.

It's cleaner and easier to add bail out code at the top of
cmake_install.cmake.  This is now done when calling qt_build_repo_begin.

As a bonus, print an informative message on installation.

Change-Id: I022b36289358ba09cac8b79781f44cd7b93113f7
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
2021-09-22 18:32:47 +02:00
..
QtStandaloneTestTemplateProject CMake: Fix typo in function name 2021-07-07 17:40:45 +10:00
QtBuildInternalsConfig.cmake Rework how installation is prevented in non-prefix builds 2021-09-22 18:32:47 +02:00