diff --git a/ApplicationCode/CMakeLists.txt b/ApplicationCode/CMakeLists.txt index 4514f89f14..eb28d2d228 100644 --- a/ApplicationCode/CMakeLists.txt +++ b/ApplicationCode/CMakeLists.txt @@ -390,6 +390,11 @@ if(RESINSIGHT_ENABLE_PRECOMPILED_HEADERS) endif() +if (${CMAKE_SYSTEM_NAME} MATCHES "Linux") + set_target_properties(ResInsight PROPERTIES COMPILE_FLAGS "-Wall -Wno-unused-parameter -Wno-reorder -Wno-parentheses -Wno-switch") +endif() + + if (MSVC) # The following warnings are supposed to be used in ResInsight, but temporarily disabled to avoid too much noise # warning C4245: 'return': conversion from 'int' to 'size_t', signed/unsigned mismatch