From f6505a0f8486172b24b732f9c4db361036ab7c52 Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Thu, 14 Jan 2021 01:22:12 +0000 Subject: [PATCH] cmake: Allow passing LTO option --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5182fd6da..9be6e8751 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,6 +30,9 @@ if(COMMAND cmake_policy) cmake_policy(SET CMP0017 NEW) endif() + # INTERPROCEDURAL_OPTIMIZATION is enforced when enabled. + # Allows passing -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON + cmake_policy(SET CMP0069 NEW) endif() IF(APPLE)