aboutsummaryrefslogtreecommitdiff
path: root/cmake/compiler/msvc
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2024-03-11 18:17:08 +0100
committerfunjoker <funjoker109@gmail.com>2024-03-25 20:16:37 +0100
commited11978fb8ef80900968781f54a8545a569aeb5e (patch)
tree7bdb9e90ef4162fdbadd6ae512a9c770e04166ae /cmake/compiler/msvc
parent8acf79193f36e018e47661ae9e6228edbf2b6512 (diff)
Core/Misc: Fixed windows nopch build
(cherry picked from commit 261a237cfa159e52dbb7ec4ab9ae5a5c6257b9ef)
Diffstat (limited to 'cmake/compiler/msvc')
-rw-r--r--cmake/compiler/msvc/settings.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/compiler/msvc/settings.cmake b/cmake/compiler/msvc/settings.cmake
index d757eff9423..18ab8328fbb 100644
--- a/cmake/compiler/msvc/settings.cmake
+++ b/cmake/compiler/msvc/settings.cmake
@@ -112,6 +112,11 @@ target_compile_definitions(trinity-compile-option-interface
INTERFACE
-D_CRT_NONSTDC_NO_WARNINGS)
+# Force math constants like M_PI to be available
+target_compile_definitions(trinity-compile-option-interface
+ INTERFACE
+ -D_USE_MATH_DEFINES)
+
message(STATUS "MSVC: Disabled POSIX warnings")
# Ignore specific warnings