File tree 2 files changed +22
-2
lines changed
2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 2
2
#
3
3
# Copyright (c) 2020 C++ Modern Framework
4
4
#
5
+ # ---------------------------------------------------------------------------- #
6
+
7
+ # ---------------------------------------------------------------------------- #
8
+ # CppMF projects are designed to apply modern CMake practice.
9
+ # As such, a decent CMake version is used to benefit from all new features.
10
+ #
11
+ # Check CMake Release Notes:
12
+ # https://cmake.org/cmake/help/latest/release/3.21.html
13
+ # ---------------------------------------------------------------------------- #
14
+ cmake_minimum_required (VERSION 3.21 FATAL_ERROR)
15
+
16
+ # ---------------------------------------------------------------------------- #
17
+ # Project configuration
18
+ # ---------------------------------------------------------------------------- #
19
+ project (
20
+ GitInfo.cmake
21
+ LANGUAGES C CXX
22
+ )
23
+
24
+ # ---------------------------------------------------------------------------- #
25
+ #
5
26
# Following variables will be set when calling GitInfo
6
27
#
7
28
# GIT_DIR: path to the project .git directory
24
45
#
25
46
# ---------------------------------------------------------------------------- #
26
47
27
-
28
48
# This is the main function to call in project CMakeLists.txt
29
49
# source should point to the root project directory
30
50
function (GitInfo source )
Original file line number Diff line number Diff line change 3
3
# As such, a decent CMake version is used to benefit from all new features.
4
4
#
5
5
# Check CMake Release Notes:
6
- # https://cmake.org/cmake/help/latest/release/3.22 .html
6
+ # https://cmake.org/cmake/help/latest/release/3.21 .html
7
7
# ---------------------------------------------------------------------------- #
8
8
cmake_minimum_required (VERSION 3.21 FATAL_ERROR)
9
9
You can’t perform that action at this time.
0 commit comments