mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 17:54:48 +01:00
Core/Misc: Fixed windows nopch build
(cherry picked from commit 261a237cfa)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -56,7 +56,6 @@
|
||||
|
||||
#if TRINITY_PLATFORM == TRINITY_PLATFORM_WINDOWS
|
||||
# define TRINITY_PATH_MAX 260
|
||||
# define _USE_MATH_DEFINES
|
||||
#else // TRINITY_PLATFORM != TRINITY_PLATFORM_WINDOWS
|
||||
# define TRINITY_PATH_MAX PATH_MAX
|
||||
#endif // TRINITY_PLATFORM
|
||||
|
||||
Reference in New Issue
Block a user