From c0c6c735a7fbb1ba34d86010b07d8e42a4bd70b9 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Thu, 18 May 2023 14:07:52 +0200 Subject: [PATCH] Improve build system Added option: /Zf (Faster PDB generation); this was required as we enabled /MP. Without this, the compiler regularly fails to create a PDB. Added option: /EHsc (Standard C++ exception handling). --- r5dev/cmake/Options.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/r5dev/cmake/Options.cmake b/r5dev/cmake/Options.cmake index 8818a702..f48897f6 100644 --- a/r5dev/cmake/Options.cmake +++ b/r5dev/cmake/Options.cmake @@ -6,6 +6,7 @@ macro( apply_project_settings ) add_compile_options( $<$:/permissive-> $<$:/MP> + $<$:/Zf> $<$:/W4> $<$:/GR> $<$:/D_UNICODE> @@ -61,6 +62,7 @@ macro( apply_project_settings ) $<$,$>:/MT> $<$,$>:/GS-> $<$,$>:/Gy> + $<$,$>:/EHsc> $<$,$>:/fp:fast> )