aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/cmake
diff options
context:
space:
mode:
authorelektrahesse2010-10-18 03:36:43 +0200
committerelektrahesse2010-10-18 03:36:43 +0200
commitdab62a3fba7b332323131cd038642d006e57f47c (patch)
tree9c03d6f6ab6d16a824d364246f5c70828fe072dd /linden/indra/cmake
parentChanged version to Experimental 2010.10.17 (diff)
downloadmeta-impy-dab62a3fba7b332323131cd038642d006e57f47c.zip
meta-impy-dab62a3fba7b332323131cd038642d006e57f47c.tar.gz
meta-impy-dab62a3fba7b332323131cd038642d006e57f47c.tar.bz2
meta-impy-dab62a3fba7b332323131cd038642d006e57f47c.tar.xz
Changed default compile settings for Mac. Now SSE3 and SSE4 are enabled by default, gcc-4.2 is used and 10.5 SDK is auto selected. Build from commandline in Release mode now work perfectly (./develop.py -t Release build) without the need for Xcode at all.
Diffstat (limited to '')
-rw-r--r--linden/indra/cmake/00-Common.cmake4
-rw-r--r--linden/indra/cmake/Variables.cmake16
2 files changed, 7 insertions, 13 deletions
diff --git a/linden/indra/cmake/00-Common.cmake b/linden/indra/cmake/00-Common.cmake
index 032a3cf..0e90073 100644
--- a/linden/indra/cmake/00-Common.cmake
+++ b/linden/indra/cmake/00-Common.cmake
@@ -186,8 +186,8 @@ if (DARWIN)
186 add_definitions(-DLL_DARWIN=1) 186 add_definitions(-DLL_DARWIN=1)
187 set(CMAKE_CXX_LINK_FLAGS "-Wl,-headerpad_max_install_names,-search_paths_first") 187 set(CMAKE_CXX_LINK_FLAGS "-Wl,-headerpad_max_install_names,-search_paths_first")
188 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_CXX_LINK_FLAGS}") 188 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_CXX_LINK_FLAGS}")
189 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mlong-branch") 189 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mlong-branch -msse3 -msse4.1 -msse4.2 -mssse3 -w")
190 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mlong-branch") 190 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mlong-branch -msse3 -msse4.1 -msse4.2 -mssse3 -w")
191 # NOTE: it's critical that the optimization flag is put in front. 191 # NOTE: it's critical that the optimization flag is put in front.
192 # NOTE: it's critical to have both CXX_FLAGS and C_FLAGS covered. 192 # NOTE: it's critical to have both CXX_FLAGS and C_FLAGS covered.
193 set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O0 ${CMAKE_CXX_FLAGS_RELWITHDEBINFO}") 193 set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O0 ${CMAKE_CXX_FLAGS_RELWITHDEBINFO}")
diff --git a/linden/indra/cmake/Variables.cmake b/linden/indra/cmake/Variables.cmake
index 5d4dffe..8a06133 100644
--- a/linden/indra/cmake/Variables.cmake
+++ b/linden/indra/cmake/Variables.cmake
@@ -60,17 +60,11 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
60 # set this dynamically from the build system now - 60 # set this dynamically from the build system now -
61 # NOTE: wont have a distributable build unless you add this on the configure line with: 61 # NOTE: wont have a distributable build unless you add this on the configure line with:
62 # -DCMAKE_OSX_ARCHITECTURES:STRING='i386;ppc' 62 # -DCMAKE_OSX_ARCHITECTURES:STRING='i386;ppc'
63 #set(CMAKE_OSX_ARCHITECTURES i386;ppc) 63 set(CMAKE_OSX_ARCHITECTURES i386)
64 set(CMAKE_OSX_SYSROOT /Developer/SDKs/MacOSX10.4u.sdk) 64 set(CMAKE_OSX_SYSROOT /Developer/SDKs/MacOSX10.5.sdk)
65 if (CMAKE_OSX_ARCHITECTURES MATCHES "i386" AND CMAKE_OSX_ARCHITECTURES MATCHES "ppc") 65 if (CMAKE_OSX_ARCHITECTURES MATCHES "i386")
66 set(ARCH universal) 66 set(ARCH i386)
67 else (CMAKE_OSX_ARCHITECTURES MATCHES "i386" AND CMAKE_OSX_ARCHITECTURES MATCHES "ppc") 67 endif (CMAKE_OSX_ARCHITECTURES MATCHES "i386")
68 if (${CMAKE_SYSTEM_PROCESSOR} MATCHES "ppc")
69 set(ARCH ppc)
70 else (${CMAKE_SYSTEM_PROCESSOR} MATCHES "ppc")
71 set(ARCH i386)
72 endif (${CMAKE_SYSTEM_PROCESSOR} MATCHES "ppc")
73 endif (CMAKE_OSX_ARCHITECTURES MATCHES "i386" AND CMAKE_OSX_ARCHITECTURES MATCHES "ppc")
74 set(LL_ARCH ${ARCH}_darwin) 68 set(LL_ARCH ${ARCH}_darwin)
75 set(LL_ARCH_DIR universal-darwin) 69 set(LL_ARCH_DIR universal-darwin)
76endif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") 70endif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")