aboutsummaryrefslogtreecommitdiff
path: root/cmake/compiler
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2024-03-11 18:17:08 +0100
committerShauren <shauren.trinity@gmail.com>2024-03-13 22:12:16 +0100
commite48cedb3ed3409552ab88022567cabddd705d51e (patch)
tree2f2f4d047349d09d8f31c0c280b8bbb4124fb69e /cmake/compiler
parentb0eee5589795da55ac7235cb4322fa81699df56f (diff)
Core/Misc: Fixed windows nopch build
(cherry picked from commit 261a237cfa159e52dbb7ec4ab9ae5a5c6257b9ef)
Diffstat (limited to 'cmake/compiler')
-rw-r--r--cmake/compiler/msvc/settings.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmake/compiler/msvc/settings.cmake b/cmake/compiler/msvc/settings.cmake
index 0132c45423a..a8be99d6bae 100644
--- a/cmake/compiler/msvc/settings.cmake
+++ b/cmake/compiler/msvc/settings.cmake
@@ -111,6 +111,12 @@ message(STATUS "MSVC: Disabled NON-SECURE warnings")
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