Archived
1
Fork 0

Enable LTO for all targets

This commit is contained in:
redstrate 2020-08-12 18:14:37 -04:00
parent 81be9606f4
commit f6b895c796

View file

@ -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)