System : Disable warning 4190 caused by libecl

This commit is contained in:
Magne Sjaastad
2017-08-14 13:14:54 +02:00
parent 83e663ae13
commit 4ebd51da56

View File

@@ -18,6 +18,10 @@ elseif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
add_definitions(-DCVF_OSX)
elseif(MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
# libecl : Disable some annoying warnings
# TODO: Remove when fixed in libecl
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4190")
endif()
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")