From fe5826075274cea9ef31ecfeb7a58365be2b42ea Mon Sep 17 00:00:00 2001 From: Bren Date: Sun, 3 Sep 2023 16:11:47 +0200 Subject: [PATCH] Set CMake policy 0077 for easy inclusion from other CMake prjs (#262) Co-authored-by: Bren de Hartog --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 69673d5..28b2771 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,9 @@ cmake_minimum_required(VERSION 3.5) +# See https://cmake.org/cmake/help/latest/policy/CMP0077.html +# This allows for setting option variables externally, when this project +# is included in another CMake project. +cmake_policy(SET CMP0077 NEW) project(inja LANGUAGES CXX VERSION 3.4.0)