cmake: fix MSVC PCH support

I'm not sure if the previous implementation ever worked.
This commit is contained in:
Scott Mansell
2022-04-27 18:57:13 +12:00
committed by Admiral H. Curtiss
parent 2348017ee8
commit 0909e00117
5 changed files with 37 additions and 6 deletions

View File

@ -72,9 +72,8 @@ if (MSVC)
add_compile_options(/external:W0)
add_compile_options(/external:templates-)
# Compile PCH
add_subdirectory(PCH)
add_definitions(/I${PCH_DIRECTORY})
add_definitions(/Yu${PCH_PATH})
# Don't include timestamps in binaries
add_link_options(/Brepro)