Skip to content

Commit df8a343

Browse files
committed
CMakeLists
1 parent 7701a19 commit df8a343

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

CMakeLists.txt

+21-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,27 @@
22
#
33
# Copyright (c) 2020 C++ Modern Framework
44
#
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+
#
526
# Following variables will be set when calling GitInfo
627
#
728
# GIT_DIR: path to the project .git directory
@@ -24,7 +45,6 @@
2445
#
2546
# ---------------------------------------------------------------------------- #
2647

27-
2848
# This is the main function to call in project CMakeLists.txt
2949
# source should point to the root project directory
3050
function(GitInfo source)

test/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# As such, a decent CMake version is used to benefit from all new features.
44
#
55
# 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
77
# ---------------------------------------------------------------------------- #
88
cmake_minimum_required(VERSION 3.21 FATAL_ERROR)
99

0 commit comments

Comments
 (0)