From 2c7daa242b4e7cdd585934ae9d26ac164429b622 Mon Sep 17 00:00:00 2001 From: Mizux Seiha Date: Wed, 8 Jul 2020 18:16:27 +0200 Subject: [PATCH] cmake: option() honors normal variables (CMP0077) --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index fcdf1418..a9c7dff2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,11 @@ cmake_minimum_required(VERSION 3.5) list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") +# option() honors normal variables. +if(POLICY CMP0077) + cmake_policy(SET CMP0077 NEW) +endif() + include(ParseAc) parse_ac(VERSION MAJOR MINOR PATCH)