Browse Source

Fix the logic to suppress all warnings for iOS CI build. [ci skip]

Yao Wei Tjong 姚伟忠 11 years ago
parent
commit
a13c04053c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/CMake/Modules/Urho3D-CMake-common.cmake

+ 1 - 1
Source/CMake/Modules/Urho3D-CMake-common.cmake

@@ -216,7 +216,7 @@ else ()
         endif ()
     elseif (IOS)
         # When performing CI build, suppress all the warnings for iOS build because 3rd party libraries produce too many of them and yet we don't want to touch the 3rd party library's source codes unnecessarily
-        if ($ENV{CI})
+        if ("$ENV{CI}" STREQUAL true)
             set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w")
             set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -w")
         endif ()