System : Disable warning 4190 caused by libecl

This commit is contained in:
Magne Sjaastad committed 2017-08-17 14:06:57 +02:00
1 parent 83e663ae13
commit 4ebd51da56
1 file changed
+4
+4
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")