diff --git a/ThirdParty/CMakeLists.txt b/ThirdParty/CMakeLists.txt index 27eac8f3f3cf3188adde4e4665d3af7b62a51395..3dae343e109b8b29c4a7a37a35e89281b265b246 100644 --- a/ThirdParty/CMakeLists.txt +++ b/ThirdParty/CMakeLists.txt @@ -44,10 +44,14 @@ if(NOT TARGET vtkGUISupportQt AND OGS_BUILD_GUI) set(VTK_QT_VERSION 5 CACHE INTERNAL "") include_directories(SYSTEM ${VTK_INCLUDE_DIRS}) add_subdirectory(vtkGUISupportQt) + if(MSVC) + set_target_properties(vtkGUISupportQt PROPERTIES COMPILE_FLAGS /W0) + endif() endif() if(OGS_BUILD_SWMM) add_subdirectory(SWMMInterface) + set_target_properties(SWMM SwmmInterface PROPERTIES COMPILE_FLAGS /W0) endif() if(OGS_BUILD_METIS) diff --git a/scripts/cmake/MetisSetup.cmake b/scripts/cmake/MetisSetup.cmake index c3d431eba21b4cc5665003901c3f69a70324cd74..9e2ea36a94e143ac80fc8e50edd9519da232dafb 100644 --- a/scripts/cmake/MetisSetup.cmake +++ b/scripts/cmake/MetisSetup.cmake @@ -23,11 +23,6 @@ include_directories(BEFORE ${METIS_PATH}/libmetis) file(GLOB metis_sources ${METIS_PATH}/libmetis/*.c) # Build libmetis. add_library(metis ${GKlib_sources} ${metis_sources}) -if(MSVC) - set_target_properties(metis PROPERTIES COMPILE_FLAGS /W0) -else() - set_target_properties(metis PROPERTIES COMPILE_FLAGS -w) -endif() if(UNIX) target_link_libraries(metis m) @@ -58,3 +53,10 @@ set(METIS_SOURCES add_executable(mpmetis ${METIS_SOURCES}) target_link_libraries(mpmetis metis) install(TARGETS mpmetis RUNTIME DESTINATION bin COMPONENT ogs_partmesh) + +# Disable warnings +if(MSVC) + set_target_properties(metis mpmetis PROPERTIES COMPILE_FLAGS /W0) +else() + set_target_properties(metis mpmetis PROPERTIES COMPILE_FLAGS -w) +endif() diff --git a/scripts/jenkins/all-log-parser.rules b/scripts/jenkins/all-log-parser.rules index 01cda3f1c5dd2402a22745aa89dcf8dc892abef4..30f37c6d15425abf9060e0666a247c7e52a90899 100644 --- a/scripts/jenkins/all-log-parser.rules +++ b/scripts/jenkins/all-log-parser.rules @@ -1,5 +1,9 @@ -# Workflow stages used for grouping -start /stage:/ +# Ignore warnings in Conan packages on Windows +ok /\\\.conan\\/ + +# Ignore linker warnings on envinf1 with petsc +ok /.*/usr/bin/ld: warning: libssl.*may conflict with libssl.*/ +ok /.*/usr/bin/ld: warning: libcrypto.*may conflict with libcrypto.*/ # CMake warning /CMake Warning/