Jelajahi Sumber

Features: Only require AppleClang policy to be NEW on APPLE.

Stephen Kelly 11 tahun lalu
induk
melakukan
5c04dfe465
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      Modules/Compiler/Clang-CXX.cmake

+ 1 - 1
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()