Enable LTO for all targets
This commit is contained in:
parent
81be9606f4
commit
f6b895c796
1 changed files with 3 additions and 0 deletions
|
@ -7,6 +7,9 @@ list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/cmake)
|
||||||
# enable folders in IDEs that support this feature
|
# enable folders in IDEs that support this feature
|
||||||
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
||||||
|
|
||||||
|
# enable lto
|
||||||
|
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
|
||||||
|
|
||||||
include(${CMAKE_CURRENT_LIST_DIR}/cmake/Common.cmake)
|
include(${CMAKE_CURRENT_LIST_DIR}/cmake/Common.cmake)
|
||||||
include(${CMAKE_CURRENT_LIST_DIR}/cmake/AddPlatformExecutable.cmake)
|
include(${CMAKE_CURRENT_LIST_DIR}/cmake/AddPlatformExecutable.cmake)
|
||||||
include(FetchContent)
|
include(FetchContent)
|
||||||
|
|
Reference in a new issue