diff --git a/CMakeLists.txt b/CMakeLists.txt index 9f3ada9dfb..868f1a5757 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 diff --git a/ThirdParty/boost-Subset/CMakeLists.txt b/ThirdParty/boost-Subset/CMakeLists.txt index 5a94a45d8c..86bb3ca089 100644 --- a/ThirdParty/boost-Subset/CMakeLists.txt +++ b/ThirdParty/boost-Subset/CMakeLists.txt @@ -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} diff --git a/ThirdParty/custom-opm-flowdiag-app/CMakeLists.txt b/ThirdParty/custom-opm-flowdiag-app/CMakeLists.txt index 11db6a10df..7531dd4d44 100644 --- a/ThirdParty/custom-opm-flowdiag-app/CMakeLists.txt +++ b/ThirdParty/custom-opm-flowdiag-app/CMakeLists.txt @@ -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} diff --git a/ThirdParty/custom-opm-flowdiagnostics/CMakeLists.txt b/ThirdParty/custom-opm-flowdiagnostics/CMakeLists.txt index f5b77781bb..7b1eab0405 100644 --- a/ThirdParty/custom-opm-flowdiagnostics/CMakeLists.txt +++ b/ThirdParty/custom-opm-flowdiagnostics/CMakeLists.txt @@ -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}