You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by kg...@apache.org on 2015/04/29 21:38:55 UTC
[08/13] qpid-proton git commit: NO-JIRA: default to universal
binaries on Mac OS X
NO-JIRA: default to universal binaries on Mac OS X
The system-installed Perl, Python etc. are all built as universal
binaries on Mac and so we need to build libqpid-proton to similarly
contain both architectures. This allows the bindings to link
successfully.
Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/a509195b
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/a509195b
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/a509195b
Branch: refs/heads/kgiusti-python3
Commit: a509195b94eef52389d6880ada6d77e7ed7a1885
Parents: 0d266c6
Author: Dominic Evans <do...@uk.ibm.com>
Authored: Mon Apr 27 15:41:55 2015 +0100
Committer: Dominic Evans <do...@uk.ibm.com>
Committed: Tue Apr 28 16:14:22 2015 +0100
----------------------------------------------------------------------
CMakeLists.txt | 7 +++++++
1 file changed, 7 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/a509195b/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b07c931..966d333 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -34,6 +34,13 @@ if (MSVC)
endif (MSVC)
option(BUILD_WITH_CXX "Compile Proton using C++" ${DEFAULT_BUILD_WITH_CXX})
+if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
+ # Default to universal binary on Mac OS X unless user has overriden
+ if (NOT DEFINED CMAKE_OSX_ARCHITECTURES OR "${CMAKE_OSX_ARCHITECTURES}" STREQUAL "")
+ set(CMAKE_OSX_ARCHITECTURES "i386;x86_64")
+ endif ()
+endif ()
+
if (BUILD_WITH_CXX)
project (Proton C CXX)
endif (BUILD_WITH_CXX)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org