System : Remove build warnings (#4963)

This commit is contained in:
Magne Sjaastad
2019-11-01 10:00:07 +01:00
committed by GitHub
parent a6b6411b6b
commit 32b5d7696d
4 changed files with 8 additions and 0 deletions

View File

@@ -35,6 +35,8 @@ add_library( ${PROJECT_NAME}
)
if (MSVC)
set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "/wd4244")
else()
set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "-Wno-deprecated -Wno-deprecated-declarations")
endif()
target_include_directories(${PROJECT_NAME}

View File

@@ -35,6 +35,8 @@ target_link_libraries(custom-opm-flowdiag-app
if (MSVC)
set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "/wd4190 /wd4267")
else()
set_target_properties(custom-opm-flowdiag-app PROPERTIES COMPILE_FLAGS "-Wno-deprecated -Wno-deprecated-declarations")
endif()
target_include_directories(${PROJECT_NAME}

View File

@@ -27,6 +27,8 @@ add_library(${PROJECT_NAME}
if (MSVC)
set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "/wd4267")
else()
set_target_properties(custom-opm-flowdiagnostics PROPERTIES COMPILE_FLAGS "-Wno-deprecated -Wno-deprecated-declarations")
endif()
target_include_directories(${PROJECT_NAME}