Move QT_ALLOW_SYMLINK_IN_PATHS warning to config.summary

I think this needs to be more prominent, as I noticed during the testing
that it could cause issues if it gets lost in between the config
messages, as we knew of course.

Pick-to: 6.5 6.6
Task-number: QTBUG-113463
Change-Id: I2ece498a8d3604362a49cc10499b92b0d2764fb9
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Amir Masoud Abdol 2023-06-08 14:46:44 +02:00
parent 30cf6ed32f
commit 9a5de496f1
2 changed files with 8 additions and 6 deletions

View File

@ -1442,12 +1442,6 @@ function(qt_internal_get_filename_path_mode out_var)
set(mode REALPATH)
if(APPLE AND QT_ALLOW_SYMLINK_IN_PATHS)
set(mode ABSOLUTE)
message(WARNING
"QT_ALLOW_SYMLINK_IN_PATHS is enabled. "
"This is not recommended, and it may lead to unexpected issues. "
"E.g., When building QtWebEngine, enabling this option may result in build "
"issues in certain platforms. See https://bugreports.qt.io/browse/QTBUG-59769."
)
endif()
set(${out_var} ${mode} PARENT_SCOPE)
endfunction()

View File

@ -1245,3 +1245,11 @@ qt_extra_definition("QT_VERSION_PATCH" ${PROJECT_VERSION_PATCH} PUBLIC)
qt_extra_definition("QT_COPYRIGHT" \"${QT_COPYRIGHT}\" PRIVATE)
qt_extra_definition("QT_COPYRIGHT_YEAR" \"${QT_COPYRIGHT_YEAR}\" PRIVATE)
qt_configure_add_report_entry(
TYPE WARNING
MESSAGE "QT_ALLOW_SYMLINK_IN_PATHS is enabled. This is not recommended, and it may lead to unexpected issues.
E.g., When building QtWebEngine, enabling this option may result in build issues in certain platforms.
See https://bugreports.qt.io/browse/QTBUG-59769."
CONDITION QT_ALLOW_SYMLINK_IN_PATHS
)