mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 19:37:03 +00:00
Fix floating point model for VS 2015 (#52)
* Fix floating point model for VS 2015 * Fix logic for previous commit.
This commit is contained in:
parent
2d960a4b1c
commit
c145ba171a
1 changed files with 5 additions and 0 deletions
|
|
@ -65,6 +65,11 @@ if(WIN32)
|
|||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /wd4996 /wd4355 /wd4244 /wd4985 /wd4267 /MP")
|
||||
endif()
|
||||
|
||||
if(CMAKE_GENERATOR MATCHES "Visual Studio 14.*")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /fp:strict")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /fp:strict")
|
||||
endif()
|
||||
|
||||
# Specify the maximum PreCompiled Header memory allocation limit
|
||||
# Fixes a compiler-problem when using PCH - the /Ym flag is adjusted by the compiler in MSVC2012, hence we need to set an upper limit with /Zm to avoid discrepancies)
|
||||
# (And yes, this is a verified , unresolved bug with MSVC... *sigh*)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue