[Bf-blender-cvs] [74f3fb746af] master: Fix Clang compiler detection on macOS.
Brecht Van Lommel
noreply at git.blender.org
Sun Mar 4 07:41:34 CET 2018
Commit: 74f3fb746af0a2a5837be7460389258b3117be40
Author: Brecht Van Lommel
Date: Sun Mar 4 07:22:05 2018 +0100
Branches: master
https://developer.blender.org/rB74f3fb746af0a2a5837be7460389258b3117be40
Fix Clang compiler detection on macOS.
"AppleClang" was not properly detected here. Now make the compiler ID
test a bit less compact but consistent with other code.
===================================================================
M build_files/cmake/macros.cmake
===================================================================
diff --git a/build_files/cmake/macros.cmake b/build_files/cmake/macros.cmake
index e3eb4d9241a..eaf8c2b845b 100644
--- a/build_files/cmake/macros.cmake
+++ b/build_files/cmake/macros.cmake
@@ -1129,7 +1129,9 @@ endmacro()
# External libs may need 'signed char' to be default.
macro(remove_cc_flag_unsigned_char)
- if(CMAKE_C_COMPILER_ID MATCHES "^(GNU|Clang|Intel)$")
+ if(CMAKE_COMPILER_IS_GNUCC OR
+ (CMAKE_C_COMPILER_ID MATCHES "Clang") OR
+ (CMAKE_C_COMPILER_ID MATCHES "Intel"))
remove_cc_flag("-funsigned-char")
elseif(MSVC)
remove_cc_flag("/J")
More information about the Bf-blender-cvs
mailing list