From 990390adbd800042224e29778630953e25e46005 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Mon, 29 Jun 2020 18:40:17 +0100 Subject: [PATCH] Fix CMake error when LTO is enabled --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index df7c78d3..04921351 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,9 @@ cmake_minimum_required(VERSION 3.8) +if((${CMAKE_VERSION} VERSION_EQUAL 3.9) OR (${CMAKE_VERSION} VERSION_GREATER 3.9)) + cmake_policy(SET CMP0069 NEW) +endif() + ############# # Constants #