mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06:00
cmake: fix PCH to work with msvc/ninja
Ninja puts way more effort into compiling targets in parallel, and ignores dependenceis until link time. So we need to jump though hoops to force ninja to compile pch.cpp before any targets which depend on the PCH.
This commit is contained in:

committed by
Admiral H. Curtiss

parent
89fda54820
commit
876f6651b4
@ -312,7 +312,7 @@ endif()
|
||||
if(MSVC)
|
||||
# Add precompiled header
|
||||
# it will propergate down to everything that depends on common
|
||||
target_link_libraries(common PUBLIC pch)
|
||||
target_link_libraries(common PUBLIC use_pch)
|
||||
|
||||
# We need to disable PCH for this one file, because it's C and our PCH is C++
|
||||
set_source_files_properties(
|
||||
|
Reference in New Issue
Block a user