From 89e1163f2183ea6d31f2e20783e2bed5fd886b44 Mon Sep 17 00:00:00 2001 From: Nils Wentzell Date: Thu, 27 May 2021 17:50:59 -0400 Subject: [PATCH] [cmake] Remove usage of linktime optimizations --- CMakeLists.txt | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0e3620fe..f704bcd8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -105,17 +105,6 @@ set(CMAKE_CXX_EXTENSIONS OFF) # Provide additional debugging information for Debug builds add_compile_options($<$:-ggdb3>) -# Enable Linktime optimizations when available -cmake_policy(SET CMP0069 NEW) -include(CheckIPOSupported) -check_ipo_supported(RESULT ipo_supported) -if(NOT ipo_supported) - message(STATUS "Linktime optimizations could not be enabled!") -else() - message(STATUS "Linktime optimizations enabled!") - set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE) -endif() - # Create an Interface target for compiler warnings add_library(${PROJECT_NAME}_warnings INTERFACE) target_compile_options(${PROJECT_NAME}_warnings