aboutsummaryrefslogtreecommitdiff
path: root/modules/ECMSourceVersionControl.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'modules/ECMSourceVersionControl.cmake')
-rw-r--r--modules/ECMSourceVersionControl.cmake26
1 files changed, 13 insertions, 13 deletions
diff --git a/modules/ECMSourceVersionControl.cmake b/modules/ECMSourceVersionControl.cmake
index aa8164c4..b61c7069 100644
--- a/modules/ECMSourceVersionControl.cmake
+++ b/modules/ECMSourceVersionControl.cmake
@@ -1,20 +1,20 @@
-#.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
-
-#=============================================================================
# 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
+#]=======================================================================]
+
if(EXISTS "${CMAKE_SOURCE_DIR}/.git" OR
EXISTS "${CMAKE_SOURCE_DIR}/.svn" OR
EXISTS "${CMAKE_SOURCE_DIR}/.hg" OR