summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cmake/QtBuildInformation.cmake7
1 files changed, 6 insertions, 1 deletions
diff --git a/cmake/QtBuildInformation.cmake b/cmake/QtBuildInformation.cmake
index 2803006321..5a76b2070c 100644
--- a/cmake/QtBuildInformation.cmake
+++ b/cmake/QtBuildInformation.cmake
@@ -24,6 +24,11 @@ function(qt_print_build_instructions)
if(CMAKE_HOST_WIN32)
string(APPEND configure_module_command ".bat")
endif()
+ if("${CMAKE_STAGING_PREFIX}" STREQUAL "")
+ set(local_install_prefix "${CMAKE_INSTALL_PREFIX}")
+ else()
+ set(local_install_prefix "${CMAKE_STAGING_PREFIX}")
+ endif()
message("Qt is now configured for building. Just run '${build_command}'\n")
if(QT_WILL_INSTALL)
@@ -34,7 +39,7 @@ function(qt_print_build_instructions)
message("Note that this build cannot be deployed to other machines or devices.")
endif()
message("\nTo configure and build other Qt modules, you can use the following convenience script:
- ${QT_STAGING_PREFIX}/${INSTALL_BINDIR}/${configure_module_command}")
+ ${local_install_prefix}/${INSTALL_BINDIR}/${configure_module_command}")
message("\nIf reconfiguration fails for some reason, try to remove 'CMakeCache.txt' \
from the build directory \n")
endfunction()