From 55f23b0902ce160072537c2f1ab9e609f71b638c Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Thu, 17 Aug 2017 13:39:54 +0200 Subject: [PATCH] MSVC : Disable warnings for opm-flowdiag --- ThirdParty/custom-opm-flowdiag-app/CMakeLists.txt | 4 ++++ ThirdParty/custom-opm-flowdiagnostics/CMakeLists.txt | 3 +++ 2 files changed, 7 insertions(+) diff --git a/ThirdParty/custom-opm-flowdiag-app/CMakeLists.txt b/ThirdParty/custom-opm-flowdiag-app/CMakeLists.txt index 69efc74e7f..e0f850276e 100644 --- a/ThirdParty/custom-opm-flowdiag-app/CMakeLists.txt +++ b/ThirdParty/custom-opm-flowdiag-app/CMakeLists.txt @@ -27,3 +27,7 @@ add_library(custom-opm-flowdiag-app ) target_link_libraries(custom-opm-flowdiag-app ecl) + +if (MSVC) + set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "/wd4190 /wd4267") +endif() diff --git a/ThirdParty/custom-opm-flowdiagnostics/CMakeLists.txt b/ThirdParty/custom-opm-flowdiagnostics/CMakeLists.txt index f6b2c7ec62..3e072c7c1e 100644 --- a/ThirdParty/custom-opm-flowdiagnostics/CMakeLists.txt +++ b/ThirdParty/custom-opm-flowdiagnostics/CMakeLists.txt @@ -21,3 +21,6 @@ add_library(${PROJECT_NAME} ${project_source_files_complete_path} ) +if (MSVC) + set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "/wd4267") +endif()