From 6945d949edaf5fa13a1f3867d08de7b24d2ae816 Mon Sep 17 00:00:00 2001 From: John Tramm Date: Mon, 20 Jan 2020 17:05:49 +0000 Subject: [PATCH] Slight tweak to IPO build commands to ensure it works if compiler does not support IPO. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 33911ac61b..889c54b339 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -73,6 +73,8 @@ endif() # Enable interprocedural (link time) optimization if requested and supported #=============================================================================== +set(ipo_support_detected FALSE) + if (NOT (CMAKE_VERSION VERSION_LESS 3.9)) cmake_policy(SET CMP0069 NEW) include(CheckIPOSupported)