[cfe-dev] CMake/Xcode build fails trying to build asan
Brad King
brad.king at kitware.com
Wed Feb 19 10:44:40 PST 2014
On 02/19/2014 12:34 PM, Kyle Sluder wrote:
> It is quite common to have a single .xcodeproj that contains two
> targets: one for iOS and one for Mac.
Okay, I misread the use case here. The CMAKE_OSX_SYSROOT and
CMAKE_OSX_ARCHITECTURES were created to support builds of OS X
universal binaries where everything was still targeting the same
set of platforms (with a single -isysroot for everything).
CMake has no official support for mixed-platform builds so you will
either have to hack the build rules or help improve CMake to
support this. There is already support for a per-binary list of
architectures:
http://www.cmake.org/cmake/help/v2.8.12/cmake.html#prop_tgt:OSX_ARCHITECTURES
Something similar could be created for the other settings.
-Brad
More information about the cfe-dev
mailing list