|
|
@ -212,11 +212,6 @@ cmake_dependent_option(USE_DISCORD_PRESENCE "Enables Discord Rich Presence" OFF |
|
|
|
|
|
|
|
|
option(YUZU_TESTS "Compile tests" "${BUILD_TESTING}") |
|
|
option(YUZU_TESTS "Compile tests" "${BUILD_TESTING}") |
|
|
|
|
|
|
|
|
option(YUZU_USE_PRECOMPILED_HEADERS "Use precompiled headers" OFF) |
|
|
|
|
|
if (YUZU_USE_PRECOMPILED_HEADERS) |
|
|
|
|
|
message(STATUS "Using Precompiled Headers.") |
|
|
|
|
|
set(CMAKE_PCH_INSTANTIATE_TEMPLATES ON) |
|
|
|
|
|
endif() |
|
|
|
|
|
option(YUZU_ENABLE_LTO "Enable link-time optimization" OFF) |
|
|
option(YUZU_ENABLE_LTO "Enable link-time optimization" OFF) |
|
|
if(YUZU_ENABLE_LTO) |
|
|
if(YUZU_ENABLE_LTO) |
|
|
include(CheckIPOSupported) |
|
|
include(CheckIPOSupported) |
|
|
@ -235,9 +230,6 @@ if(USE_CCACHE) |
|
|
message(STATUS "Found ccache at: ${CCACHE_BINARY}") |
|
|
message(STATUS "Found ccache at: ${CCACHE_BINARY}") |
|
|
set(CMAKE_C_COMPILER_LAUNCHER ${CCACHE_BINARY}) |
|
|
set(CMAKE_C_COMPILER_LAUNCHER ${CCACHE_BINARY}) |
|
|
set(CMAKE_CXX_COMPILER_LAUNCHER ${CCACHE_BINARY}) |
|
|
set(CMAKE_CXX_COMPILER_LAUNCHER ${CCACHE_BINARY}) |
|
|
if (YUZU_USE_PRECOMPILED_HEADERS) |
|
|
|
|
|
message(FATAL_ERROR "Precompiled headers are incompatible with ccache. Re-run CMake with -DYUZU_USE_PRECOMPILED_HEADERS=OFF.") |
|
|
|
|
|
endif() |
|
|
|
|
|
else() |
|
|
else() |
|
|
message(WARNING "USE_CCACHE enabled, but no executable found at: ${CCACHE_PATH}") |
|
|
message(WARNING "USE_CCACHE enabled, but no executable found at: ${CCACHE_PATH}") |
|
|
endif() |
|
|
endif() |
|
|
|