summaryrefslogtreecommitdiff
path: root/scripts/CMakeLists.txt
diff options
context:
space:
mode:
authorDaniel Fischer <df@sun.com>2010-04-30 13:36:57 +0200
committerDaniel Fischer <df@sun.com>2010-04-30 13:36:57 +0200
commitb1109f0331044f12630160a070c70951f4303d86 (patch)
tree1ee83beaa0edf053b07119acb0d33264f9f3ec33 /scripts/CMakeLists.txt
parentd60efe5820d98bba41f1b76c37927c8f648937c9 (diff)
parent17206900a07660ec35b7d86d8febabccac6a384f (diff)
downloadmariadb-git-b1109f0331044f12630160a070c70951f4303d86.tar.gz
merge
Diffstat (limited to 'scripts/CMakeLists.txt')
-rwxr-xr-xscripts/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt
index 6a6a6c9fbf8..483e4bcef65 100755
--- a/scripts/CMakeLists.txt
+++ b/scripts/CMakeLists.txt
@@ -93,6 +93,10 @@ IF(CMAKE_GENERATOR MATCHES "Makefiles")
# No multiconfig build - use CMAKE_C_FLAGS
SET(CFLAGS "@CMAKE_C_FLAGS@")
SET(CXXFLAGS "@CMAKE_CXX_FLAGS@")
+ FOREACH(ARCH ${CMAKE_OSX_ARCHITECTURES})
+ SET(CFLAGS "${CFLAGS} -arch ${ARCH}")
+ SET(CXXFLAGS "${CXXFLAGS} -arch ${ARCH}")
+ ENDFOREACH()
ELSE()
# Multiconfig build - use CMAKE_C_FLAGS_RELWITHDEBINFO
SET(CFLAGS "@CMAKE_C_FLAGS_RELWITHDEBINFO@")