From 9dc992a3fd625cdcf1b9611b39b0cd8fa865ac19 Mon Sep 17 00:00:00 2001 From: Kent Mein Date: Thu, 12 Jan 2012 16:31:27 +0000 Subject: Some small fixes to get things compiling on solaris with cmake. There are also some changes that need to be done to libmv but I'm leaving those out so I can get it patched upstream first. (Only works with gcc/g++ if we want to use sun's compiler we would need to get rid of all of our annonymous structs which I don't think we want to do at this point, example: typedef struct wmNDOFMotionData { union { float tvec[3]; // translation struct { float tx, ty, tz; }; // this would need to be fixed // something like this or something similar: struct { float x, y, z; } t; }; ... ) Kent --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 0fa6ed26bc7..61a1bd3a080 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 -- cgit v1.2.3