Ticket #53201: patch-Modules-IgnorePolicy25.2.diff

File patch-Modules-IgnorePolicy25.2.diff, 960 bytes (added by RJVB (René Bertin), 7 years ago)

version for 3.10.0 and up

  • Modules/Compiler/

    old new  
    66endif()
    77
    88cmake_policy(GET CMP0025 appleClangPolicy)
    9 if(APPLE AND NOT appleClangPolicy STREQUAL NEW)
    10   return()
    11 endif()
     9#if(APPLE AND NOT appleClangPolicy STREQUAL NEW)
     10#  return()
     11#endif()
    1212
    1313if(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 2.1)
    1414  set(CMAKE_CXX98_STANDARD_COMPILE_OPTION "-std=c++98")
  • Modules/Compiler/Clang-C.cmake

    old new  
    22__compiler_clang(C)
    33
    44cmake_policy(GET CMP0025 appleClangPolicy)
    5 if(APPLE AND NOT appleClangPolicy STREQUAL NEW)
    6   return()
    7 endif()
     5# if(APPLE AND NOT appleClangPolicy STREQUAL NEW)
     6#   return()
     7# endif()
    88
    99if(NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 3.4)
    1010  if(NOT "x${CMAKE_C_SIMULATE_ID}" STREQUAL "xMSVC")