From f0f812226633b8ca462966a5548ec162331f09c3 Mon Sep 17 00:00:00 2001
From: Antoine Regimbeau <antoine.regimbeau@c-s.fr>
Date: Tue, 9 Jul 2019 14:55:06 +0200
Subject: [PATCH] Remove deprecated macro

---
 CMake/OTBModuleMacros.cmake | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)

diff --git a/CMake/OTBModuleMacros.cmake b/CMake/OTBModuleMacros.cmake
index 4cde0c39e3..57013195d3 100644
--- a/CMake/OTBModuleMacros.cmake
+++ b/CMake/OTBModuleMacros.cmake
@@ -27,11 +27,8 @@ include(${_OTBModuleMacros_DIR}/OTBModuleDoxygen.cmake)
 include(${_OTBModuleMacros_DIR}/OTBModuleHeaderTest.cmake)
 include(${_OTBModuleMacros_DIR}/OTBApplicationMacros.cmake)
 
-# With Apple's GGC <=4.2 and LLVM-GCC <=4.2 visibility of template
-# don't work. Set the option to off and hide it.
-if(APPLE AND CMAKE_COMPILER_IS_GNUCXX AND CMAKE_CXX_COMPILER_VERSION  VERSION_LESS "4.3")
-  set( USE_COMPILER_HIDDEN_VISIBILITY OFF CACHE INTERNAL "" )
-elseif(APPLE)
+# TODO check if this is still the case:
+if(APPLE)
   #RK:  compiler visibility nor woking on osx with appleclang xcode.
   #gcc is a symlink to clang
   set( USE_COMPILER_HIDDEN_VISIBILITY OFF CACHE INTERNAL "" )
@@ -369,8 +366,3 @@ macro(otb_module_target _name)
     otb_module_target_install(${_name})
   endif()
 endmacro()
-
-macro(otb_module_requires_cxx11)
-  message(WARNING "otb_module_requires_cxx11 is deprecated since OTB version 6.2 which build with c++14 by default. You can safely remove the call to this macro.")
-  set(OTB_MODULE_${otb-module}_REQUIRES_CXX11 1)
-endmacro()
-- 
GitLab