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