diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2022-12-03 20:10:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-03 20:10:06 +0100 |
commit | 75e16547f8977e8b2b07723b04bcc3cbe999d566 (patch) | |
tree | 7a7795d68f636d1a3f4972c3ea36c1d50db564c5 /src/CMakeLists.txt | |
parent | Merge pull request #9289 from liamwhite/fruit-company (diff) | |
parent | CMake: Consolidate common PCH headers (diff) | |
download | yuzu-75e16547f8977e8b2b07723b04bcc3cbe999d566.tar yuzu-75e16547f8977e8b2b07723b04bcc3cbe999d566.tar.gz yuzu-75e16547f8977e8b2b07723b04bcc3cbe999d566.tar.bz2 yuzu-75e16547f8977e8b2b07723b04bcc3cbe999d566.tar.lz yuzu-75e16547f8977e8b2b07723b04bcc3cbe999d566.tar.xz yuzu-75e16547f8977e8b2b07723b04bcc3cbe999d566.tar.zst yuzu-75e16547f8977e8b2b07723b04bcc3cbe999d566.zip |
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 4bd5aa50b..140415474 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -82,8 +82,9 @@ if (MSVC) /wd4324 # 'struct_name': structure was padded due to __declspec(align()) ) - if (USE_CCACHE) + if (USE_CCACHE OR YUZU_USE_PRECOMPILED_HEADERS) # when caching, we need to use /Z7 to downgrade debug info to use an older but more cachable format + # Precompiled headers are deleted if not using /Z7. See https://github.com/nanoant/CMakePCHCompiler/issues/21 add_compile_options(/Z7) else() add_compile_options(/Zi) |