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
22b7bd2a70
commit
c3cbd52565
@ -65,6 +65,11 @@ if(WIN32)
|
|||||||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /wd4996 /wd4355 /wd4244 /wd4985 /wd4267 /MP")
|
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /wd4996 /wd4355 /wd4244 /wd4985 /wd4267 /MP")
|
||||||
endif()
|
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
|
# 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)
|
# 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*)
|
# (And yes, this is a verified , unresolved bug with MSVC... *sigh*)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user