Quellcode durchsuchen

Exclude Bullet's Clang workaround on all Apple platforms.

Yao Wei Tjong 姚伟忠 vor 6 Jahren
Ursprung
Commit
012c606284
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      CMake/Modules/UrhoCommon.cmake

+ 1 - 1
CMake/Modules/UrhoCommon.cmake

@@ -730,7 +730,7 @@ else ()
             set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fcolor-diagnostics")
             set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fcolor-diagnostics")
         endif ()
-        if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0.1 OR CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL 7.0.1)
+        if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0.1 AND NOT APPLE)
             # Workaround for Clang 7.0.1 and above until the Bullet upstream has fixed the Clang 7 diagnostic checks issue (see https://github.com/bulletphysics/bullet3/issues/2114)
             set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-argument-outside-range")
             set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-argument-outside-range")