Commit 58fd9491 authored by Rashad Kanavath's avatar Rashad Kanavath

WRG: do not show deprecated warnings on dashboard

parent 28dabeb4
......@@ -17,6 +17,19 @@ if(PROJECT_NAME STREQUAL "OTBExamples")
include(${CMAKE_CURRENT_SOURCE_DIR}/../CMake/OTBManageLargeInputPaths.cmake)
# dashboard build. Why do I need to see the deprecated warnings on dashboard!
# It just fades the actual warnings and most importantly very annoying.
if(NOT "$ENV{DASHBOARD_TEST_FROM_CTEST}" STREQUAL "")
if(UNIX)
if(CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-cpp")
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-#warnings")
endif() #CMAKE_COMPILER_IS_GNUCXX
endif() #UNIX
endif()
########################## shamelessly copied from OTB/CMakeLists.txt ##########################
#Generate cmake variables with a set of largeinput data used in tests
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment