diff --git a/cmake/QtProcessConfigureArgs.cmake b/cmake/QtProcessConfigureArgs.cmake index 8fa4be2af1..2bc0f71bd0 100644 --- a/cmake/QtProcessConfigureArgs.cmake +++ b/cmake/QtProcessConfigureArgs.cmake @@ -985,6 +985,14 @@ endforeach() push("${MODULE_ROOT}") +if(INPUT_sysroot) + qtConfAddWarning("The -sysroot option is deprecated and no longer has any effect. " + "It is recommended to use a toolchain file instead, i.e., " + "-DCMAKE_TOOLCHAIN_FILE=. " + "Alternatively, you may use -DCMAKE_SYSROOT option " + "to pass the sysroot to CMake.\n") +endif() + # Restore the escaped semicolons in arguments that are lists list(TRANSFORM cmake_args REPLACE "\\[\\[;\\]\\]" "\\\\;") diff --git a/cmake/configure-cmake-mapping.md b/cmake/configure-cmake-mapping.md index af7e741dd0..f3b3ffb3f4 100644 --- a/cmake/configure-cmake-mapping.md +++ b/cmake/configure-cmake-mapping.md @@ -80,8 +80,6 @@ The following table describes the mapping of configure options to CMake argument | -mp | n/a | | | -warnings-are-errors | -DWARNINGS_ARE_ERRORS=ON | | | -silent | n/a | | -| -sysroot | -DCMAKE_SYSROOT= | Should be provided by a toolchain file that's | -| | | passed via -DCMAKE_TOOLCHAIN_FILE= | | -no-gcc-sysroot | n/a | The corresponding CMake variables are CMAKE_SYSROOT_LINK | | | | and CMAKE_SYSROOT_COMPILE. | | | | They are usually set in a toolchain file. | diff --git a/config_help.txt b/config_help.txt index f63e52b8a8..f35ec4cc24 100644 --- a/config_help.txt +++ b/config_help.txt @@ -157,8 +157,6 @@ Build options: Build environment: - -sysroot ....... Set as the target sysroot - -pkg-config .......... Use pkg-config [auto] (Unix only) -D .......... Pass additional preprocessor define