From 92f80daf4a3bc9c6ebb2972d5f3d13e303f63ff0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Tue, 1 Sep 2020 17:22:06 +0200 Subject: [PATCH] Support interprocedural optimization override This policy applies the CMAKE_INTERPROCEDURAL_OPTIMIZATION override to the GLFW target. Fixes #1753. (cherry picked from commit 9d7897f9618cbf836ff027c5e5400fbcc0938e79) --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index be7b6397..f4f30293 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,6 +8,10 @@ if (POLICY CMP0054) cmake_policy(SET CMP0054 NEW) endif() +if (POLICY CMP0069) + cmake_policy(SET CMP0069 NEW) +endif() + if (POLICY CMP0077) cmake_policy(SET CMP0077 NEW) endif()