summaryrefslogtreecommitdiffstats
path: root/cmake/QtTargetHelpers.cmake
diff options
context:
space:
mode:
authorAlexey Edelev <semlanik@gmail.com>2021-10-14 12:34:22 +0200
committerAlexey Edelev <semlanik@gmail.com>2021-10-15 15:53:23 +0200
commitf19f7295119d96b7606d475814328aac1d78c7cf (patch)
tree79bd22c05719c37efbcca63cbaadae75842eff18 /cmake/QtTargetHelpers.cmake
parenta36c84c6a3dca29afdb7741b16975c108be341ab (diff)
Improve double call protection of qt_internal_generate_tool_command_wrapper
file(GENERATE) might fail if an unrelated configuration error happens, and yet QT_TOOL_COMMAND_WRAPPER_PATH would already be set. Set the cache variable only if generating was successful and replace the QT_TOOL_COMMAND_WRAPPER_PATH valiable check with GLOBAL property to protect the function from double call. For CMake versions higher than or equal to 3.18 replace 'file(GENERATE' call with 'file(CONFIGURE' to generate the wrapper at configure time with the use of a plain semicolon character. Pick-to: 6.2 Fixes: QTBUG-96870 Change-Id: Icf9c40f571d9c069043604f67ffcf2762966f6d0 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'cmake/QtTargetHelpers.cmake')
0 files changed, 0 insertions, 0 deletions