diff options
author | Alexey Edelev <alexey.edelev@qt.io> | 2024-04-09 14:59:55 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2024-04-11 02:24:46 +0000 |
commit | 9dd7e09c9be7065081447cff07ddd913d015d760 (patch) | |
tree | 6682bb5e718a6ada9d8e71821951d10ba4a8bc8f /cmake | |
parent | 3890c487e9784671ef7ce7928b55e2314adce457 (diff) |
Suppress the warning about unused QT_INTERNAL_CALLED_FROM_CONFIGURE
Add the dummy check if the variable is defined to suppress the warning.
Change-Id: If3bb0ef6a2587693c0ec898ceb3080ebfc1e82a7
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
(cherry picked from commit 6760bae2fa7a758ac8eb70c0009c80a715ea1c54)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/QtBuildRepoHelpers.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/QtBuildRepoHelpers.cmake b/cmake/QtBuildRepoHelpers.cmake index 680467a9fe..f3307647fa 100644 --- a/cmake/QtBuildRepoHelpers.cmake +++ b/cmake/QtBuildRepoHelpers.cmake @@ -383,7 +383,9 @@ function(qt_internal_qt_configure_end) # If Qt is configued via the configure script, remove the marker variable, so that any future # reconfigurations that are done by calling cmake directly don't trigger configure specific # logic. - unset(QT_INTERNAL_CALLED_FROM_CONFIGURE CACHE) + if(QT_INTERNAL_CALLED_FROM_CONFIGURE) + unset(QT_INTERNAL_CALLED_FROM_CONFIGURE CACHE) + endif() endfunction() macro(qt_build_repo) |