mirror of
https://github.com/triqs/dft_tools
synced 2024-12-23 04:43:42 +01:00
[cmake] Remove usage of linktime optimizations
This commit is contained in:
parent
3c5196722f
commit
89e1163f21
@ -105,17 +105,6 @@ set(CMAKE_CXX_EXTENSIONS OFF)
|
|||||||
# Provide additional debugging information for Debug builds
|
# Provide additional debugging information for Debug builds
|
||||||
add_compile_options($<$<CONFIG:Debug>:-ggdb3>)
|
add_compile_options($<$<CONFIG:Debug>:-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
|
# Create an Interface target for compiler warnings
|
||||||
add_library(${PROJECT_NAME}_warnings INTERFACE)
|
add_library(${PROJECT_NAME}_warnings INTERFACE)
|
||||||
target_compile_options(${PROJECT_NAME}_warnings
|
target_compile_options(${PROJECT_NAME}_warnings
|
||||||
|
Loading…
Reference in New Issue
Block a user