From 5c04dfe465d85be3d11f37d16d6ebcafbdcb7d53 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Wed, 14 May 2014 23:55:34 +0200 Subject: [PATCH] Features: Only require AppleClang policy to be NEW on APPLE. --- Modules/Compiler/Clang-CXX.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/Compiler/Clang-CXX.cmake b/Modules/Compiler/Clang-CXX.cmake index a1b3a104d..0409c241b 100644 --- a/Modules/Compiler/Clang-CXX.cmake +++ b/Modules/Compiler/Clang-CXX.cmake @@ -6,7 +6,7 @@ if(NOT CMAKE_CXX_SIMULATE_ID STREQUAL "MSVC") endif() cmake_policy(GET CMP0025 appleClangPolicy) -if(NOT appleClangPolicy STREQUAL NEW) +if(APPLE AND NOT appleClangPolicy STREQUAL NEW) return() endif()