mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00:00
Various random code cleanups
This commit is contained in:
parent
358658fa34
commit
7892541383
73 changed files with 216 additions and 285 deletions
|
@ -33,6 +33,15 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "^(GNU|Clang|AppleClang)$")
|
|||
elseif(MSVC)
|
||||
string(APPEND CMAKE_CXX_STANDARD_LIBRARIES " msvcrt.lib") # ???? fuck off
|
||||
|
||||
add_compile_definitions(
|
||||
# Suppress some useless warnings
|
||||
_CRT_SECURE_NO_DEPRECATE
|
||||
# Get M_PI to work
|
||||
_USE_MATH_DEFINES
|
||||
# Don't define min/max macros in minwindef.h
|
||||
NOMINMAX
|
||||
)
|
||||
|
||||
add_compile_options(/Zl)
|
||||
|
||||
# Enable SSE for floating point math on 32-bit x86 by default
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue