diff options
Diffstat (limited to 'cmake/QtSynchronizeRepo.cmake')
-rw-r--r-- | cmake/QtSynchronizeRepo.cmake | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/cmake/QtSynchronizeRepo.cmake b/cmake/QtSynchronizeRepo.cmake index 5b379d0b..eabd5c7c 100644 --- a/cmake/QtSynchronizeRepo.cmake +++ b/cmake/QtSynchronizeRepo.cmake @@ -1,7 +1,15 @@ +# Copyright (C) 2024 The Qt Company Ltd. +# SPDX-License-Identifier: BSD-3-Clause + # This script is to be called (ideally from a git-sync-to alias script): # cmake -DSYNC_TO_MODULE="$1" -DSYNC_TO_BRANCH="$2" -P cmake/QtSynchronizeRepo.cmake +# Or as follows (ideally from a git-qt-foreach alias script): +# cmake -DQT_FOREACH=TRUE "-DARGS=$*" -P cmake/QtSynchronizeRepo.cmake cmake_policy(VERSION 3.16) include(cmake/QtTopLevelHelpers.cmake) - -qt_internal_sync_to(${SYNC_TO_MODULE} ${SYNC_TO_BRANCH}) +if(QT_FOREACH) + qt_internal_foreach_repo_run(ARGS ${ARGS}) +else() + qt_internal_sync_to(${SYNC_TO_MODULE} ${SYNC_TO_BRANCH}) +endif() |