2024-01-29 13:19:26 +00:00
|
|
|
# Copyright (C) 2024 The Qt Company Ltd.
|
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
|
2022-01-21 20:55:08 +00:00
|
|
|
# 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
|
2023-01-24 16:19:38 +00:00
|
|
|
# Or as follows (ideally from a git-qt-foreach alias script):
|
|
|
|
# cmake -DQT_FOREACH=TRUE "-DARGS=$*" -P cmake/QtSynchronizeRepo.cmake
|
2022-01-21 20:55:08 +00:00
|
|
|
|
|
|
|
cmake_policy(VERSION 3.16)
|
2020-11-16 17:14:49 +00:00
|
|
|
include(cmake/QtTopLevelHelpers.cmake)
|
2023-01-24 16:19:38 +00:00
|
|
|
if(QT_FOREACH)
|
|
|
|
qt_internal_foreach_repo_run(ARGS ${ARGS})
|
|
|
|
else()
|
|
|
|
qt_internal_sync_to(${SYNC_TO_MODULE} ${SYNC_TO_BRANCH})
|
|
|
|
endif()
|