diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/CMakeLists.txt | 4 | ||||
| -rw-r--r-- | src/video_core/CMakeLists.txt | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index ff5502d87..70fa1edf5 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt | |||
| @@ -861,3 +861,7 @@ endif() | |||
| 861 | if (YUZU_USE_PRECOMPILED_HEADERS) | 861 | if (YUZU_USE_PRECOMPILED_HEADERS) |
| 862 | target_precompile_headers(core PRIVATE precompiled_headers.h) | 862 | target_precompile_headers(core PRIVATE precompiled_headers.h) |
| 863 | endif() | 863 | endif() |
| 864 | |||
| 865 | if (YUZU_ENABLE_LTO) | ||
| 866 | set_property(TARGET core PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE) | ||
| 867 | endif() | ||
diff --git a/src/video_core/CMakeLists.txt b/src/video_core/CMakeLists.txt index 4742bcbe9..e904573d7 100644 --- a/src/video_core/CMakeLists.txt +++ b/src/video_core/CMakeLists.txt | |||
| @@ -330,3 +330,7 @@ endif() | |||
| 330 | if (YUZU_USE_PRECOMPILED_HEADERS) | 330 | if (YUZU_USE_PRECOMPILED_HEADERS) |
| 331 | target_precompile_headers(video_core PRIVATE precompiled_headers.h) | 331 | target_precompile_headers(video_core PRIVATE precompiled_headers.h) |
| 332 | endif() | 332 | endif() |
| 333 | |||
| 334 | if (YUZU_ENABLE_LTO) | ||
| 335 | set_property(TARGET video_core PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE) | ||
| 336 | endif() | ||