Add cmake option ENABLE_LTO for link time optimization on Release builds.
parent
39f419e28c
commit
d575da8611
|
@ -98,6 +98,10 @@ if(CMAKE_SYSTEM_PROCESSOR STREQUAL "i686" OR CMAKE_SYSTEM_PROCESSOR STREQUAL "X8
|
|||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${FLOAT_FLAGS}")
|
||||
endif()
|
||||
|
||||
if(ENABLE_LTO)
|
||||
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
|
||||
endif()
|
||||
|
||||
if(ENABLE_OPENMP)
|
||||
include(FindOpenMP)
|
||||
if(OpenMP_FOUND)
|
||||
|
|
Loading…
Reference in New Issue