From b69797f5f211af4920d25df18245e99705f81a5a Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Tue, 27 Sep 2016 14:57:02 +0100 Subject: [PATCH] Suppress deprecation messages --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 09d72f43f..116010fba 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -135,11 +135,11 @@ if( ENABLE_JPG ) # which can affect future package discovery if not undone by the caller. # The current CMAKE_PREFIX_PATH is backed up as _CMAKE_PREFIX_PATH # - set(ECBUILD_NO_DEPRECATIONS ON) # Suppress deprecation message + set(CMAKE_WARN_DEPRECATED OFF) # Suppress deprecation message ecbuild_add_extra_search_paths( jasper ) find_package( Jasper ) set(CMAKE_PREFIX_PATH ${_CMAKE_PREFIX_PATH}) # Restore CMAKE_PREFIX_PATH - set(ECBUILD_NO_DEPRECATIONS OFF) # Remove suppression + set(CMAKE_WARN_DEPRECATED ON) # Remove suppression find_package( OpenJPEG )