Some small fixes to get things compiling on solaris with cmake.
[blender.git] / CMakeLists.txt
index 0fa6ed26bc7ba85873eafeb4a6879cff8a8a692c..61a1bd3a0805bce644bd30009d7cc67268f57dc2 100644 (file)
@@ -620,6 +620,10 @@ if(UNIX AND NOT APPLE)
        # 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")
+       # Solaris CC
+       elseif(CMAKE_CXX_COMPILER_ID MATCHES "SunPro") 
+               set(PLATFORM_CFLAGS "-pipe -features=extensions -fPIC -D__FUNCTION__=__func__")
+               
        # Intel C++ Compiler
        elseif(CMAKE_C_COMPILER_ID MATCHES "Intel")
                # think these next two are broken