e0590a0b56
kf6-kcoreaddons 6.28.0 requires ECM >= 6.28.0 but the vendored ECM source/ was still 6.10.0: the sync engine skipped it because ECM's version marker is a bare set(VERSION "X.Y.Z") that the parser didn't recognize (only KF_VERSION / PROJECT_VERSION / RELEASE_SERVICE_VERSION). Re-lay ECM from its 6.28.0 source.tar (pure cmake modules, no Redox port) and teach both the sync engine and the validator to read set(VERSION) so this class is caught, not silently skipped.
28 lines
837 B
CMake
28 lines
837 B
CMake
# SPDX-FileCopyrightText: 2019 Harald Sitter <sitter@kde.org>
|
|
#
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
#[=======================================================================[.rst:
|
|
ECMSourceVersionControl
|
|
--------------------------
|
|
|
|
Tries to determine whether the source is under version control (git clone,
|
|
svn checkout, etc).
|
|
|
|
``ECM_SOURCE_UNDER_VERSION_CONTROL`` is set when indication is found that
|
|
``CMAKE_SOURCE_DIR`` is under version control.
|
|
|
|
Since 5.63
|
|
#]=======================================================================]
|
|
|
|
cmake_policy(VERSION 3.16)
|
|
|
|
if(EXISTS "${CMAKE_SOURCE_DIR}/.git" OR
|
|
EXISTS "${CMAKE_SOURCE_DIR}/.svn" OR
|
|
EXISTS "${CMAKE_SOURCE_DIR}/.hg" OR
|
|
EXISTS "${CMAKE_SOURCE_DIR}/.bzr")
|
|
set(ECM_SOURCE_UNDER_VERSION_CONTROL TRUE)
|
|
else()
|
|
set(ECM_SOURCE_UNDER_VERSION_CONTROL FALSE)
|
|
endif()
|