Match Apple clang 11/249211/3
authorWander Lairson Costa <wander.lairson@gmail.com>
Tue, 8 Dec 2020 19:20:51 +0000 (16:20 -0300)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 5 Jan 2021 20:56:44 +0000 (20:56 +0000)
In macOS, the clang shipped with macOS has the string 'AppleClang' in
cmake.

Change-Id: I0995c3853fded17b35e41595398421d3c4001bf1

build/tizen/.gitignore
build/tizen/CMakeLists.txt

index 14a7719..e800989 100644 (file)
@@ -1,2 +1,4 @@
 /doc
 /linker-test
+/dali2-core-config.cmake
+/*.dylib
index eb890c2..301c614 100644 (file)
@@ -147,7 +147,7 @@ ELSEIF( UNIX )
 
   # TODO: Clang is a lot more strict with warnings, we should address
   # those issues at some point.
-  IF( NOT ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang" )
+  IF( NOT ${CMAKE_CXX_COMPILER_ID} MATCHES "Clang" )
     ADD_COMPILE_OPTIONS( -Werror )
   ENDIF()