[CMake] Possible bug in XCode backend and proposed workarounds

Michael Wild themiwi at gmail.com
Thu Jan 6 11:16:28 EST 2011


On 01/06/2011 05:02 PM, Samuel Crow wrote:
> Hello,
> 
> I've built LLVM 2.9SVN successfully with CMake under XCode but had some 
> workarounds needed to get to that point.
> 
> 1.  Building in debug mode there was one archive file dependency that looked for 
> the release folder instead of the debug folder.

I suspect the error is in the CMakeLists.txt of the LLVM project.

> 2.  The install target failed to put a sudo -A in front of it.  This is required 
> even when logged in as administrator on the Mac.

Do you really want to install into the system from Xcode??? Do normal
Xcode projects allow this (I never tried, and probably never will)?
Would this even be desirable?

The proper thing to do would be to build a package, and then install
that into the system.

> 3.  Since there is no console input source available in XCode, a small 
> executable was needed to accept the password and echo it to stdout for the sudo 
> -A flag to use.  I've written such a requester box code in Qt and would be 
> willing to share with the CMake team if desired.

Wouldn't that be easier with a small applescript (subject to my
reservations from 2.)?

> 
> Thanks for your time and efforts,
> 
> --Samuel D. Crow




More information about the CMake mailing list