[CMake] CMAKE_OSX_SYSROOT being ignored?

Kenneth Riddile kfriddile at yahoo.com
Fri Jul 10 16:40:02 EDT 2009


Sorry all...I am indeed using CMAKE_OSX_SYSROOT.  I just made a typo when writing my original post.  So what else might I be doing wrong?
--- On Fri, 7/10/09, Bill Hoffman <bill.hoffman at kitware.com> wrote:

From: Bill Hoffman <bill.hoffman at kitware.com>
Subject: Re: [CMake] CMAKE_OSX_SYSROOT being ignored?
To: "Kenneth Riddile" <kfriddile at yahoo.com>
Cc: cmake at cmake.org
Date: Friday, July 10, 2009, 8:07 AM

Kenneth Riddile wrote:
> Hi,
> 
> I'm using CMake 2.6.4 to generate xcode projects for iphone apps.  I have nearly everything working, except that my specified setting for CMAKE_OSX_SYSROOT is being ignored in favor of the "Current OS" setting.  I am specifying it like this:
> 
> set(CMAKE_OSX_ROOT iphoneos2.1)
> 
> from looking at this post:
> 
> http://stackoverflow.com/questions/822404/how-to-set-up-cmake-to-build-an-app-for-the-iphone
> 
> Once my projects are generated, I simply have to change the SDK root in xcode to have it use the iphone SDK, but I'd like to get CMake to use the SDK I'm telling it to use.
> 

Should be CMAKE_OSX_SYSROOT.  See Modules/Platform/Darwin.cmake

-Bill
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090710/61d80971/attachment.htm>


More information about the CMake mailing list