mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
System : Remove build warnings (#4963)
This commit is contained in:
parent
a6b6411b6b
commit
32b5d7696d
@ -134,6 +134,8 @@ else()
|
||||
if (MSVC)
|
||||
# libecl : Disable some warnings
|
||||
set_target_properties(ecl PROPERTIES COMPILE_FLAGS "/wd4244 /wd4267 /wd4013 /wd4190 /wd4018 /wd4477 /wd4098 /wd4293 /wd4305 /wd4020 /wd4028 /wd4715")
|
||||
else()
|
||||
set_target_properties(ecl PROPERTIES COMPILE_FLAGS "-Wno-deprecated -Wno-deprecated-declarations -Wno-clobbered")
|
||||
endif()
|
||||
|
||||
list(APPEND THIRD_PARTY_LIBRARIES
|
||||
|
2
ThirdParty/boost-Subset/CMakeLists.txt
vendored
2
ThirdParty/boost-Subset/CMakeLists.txt
vendored
@ -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}
|
||||
|
@ -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}
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user