Skip to content
Snippets Groups Projects
Commit bebee3fb authored by Campbell Barton's avatar Campbell Barton
Browse files

new cmake doesn't consider CLang == GNUCC, set flags for clang explicitly.

parent 8fcc8dd7
Branches
Tags
No related merge requests found
......@@ -499,6 +499,9 @@ if(UNIX AND NOT APPLE)
# GNU Compiler
if(CMAKE_COMPILER_IS_GNUCC)
set(PLATFORM_CFLAGS "-pipe -fPIC -funsigned-char -fno-strict-aliasing")
# CLang is the same as GCC for now.
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(PLATFORM_CFLAGS "-pipe -fPIC -funsigned-char -fno-strict-aliasing")
# Intel C++ Compiler
elseif(CMAKE_C_COMPILER_ID MATCHES "Intel")
# think these next two are broken
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment