diff --git a/CMakeLists.txt b/CMakeLists.txt index 083835f6e..cc6e258e6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -87,6 +87,8 @@ IF(MSVC) IF (USE_MSVC_FAST_FLOATINGPOINT) SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /fp:fast") ENDIF() + + SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4244 /wd4267") ENDIF(MSVC) diff --git a/build3/premake4.lua b/build3/premake4.lua index 4bfb35d28..862dfc2a5 100644 --- a/build3/premake4.lua +++ b/build3/premake4.lua @@ -6,10 +6,15 @@ osversion.majorversion, osversion.minorversion, osversion.revision, osversion.description)) - - -- Multithreaded compiling if _ACTION == "vs2010" or _ACTION=="vs2008" then - buildoptions { "/MP" } + buildoptions + { + -- Multithreaded compiling + "/MP", + -- Disable a few useless warnings + "/wd4244", + "/wd4267" + } end act = ""