Skip to content

Commit fe58260

Browse files
authored
Set CMake policy 0077 for easy inclusion from other CMake prjs (pantor#262)
Co-authored-by: Bren de Hartog <[email protected]>
1 parent fe6d4f4 commit fe58260

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
cmake_minimum_required(VERSION 3.5)
22

3+
# See https://cmake.org/cmake/help/latest/policy/CMP0077.html
4+
# This allows for setting option variables externally, when this project
5+
# is included in another CMake project.
6+
cmake_policy(SET CMP0077 NEW)
37

48
project(inja LANGUAGES CXX VERSION 3.4.0)
59

0 commit comments

Comments
 (0)