[CMake] how to execute install target from XCode ?

Bill Hoffman bill.hoffman at kitware.com
Thu Nov 16 10:48:34 EST 2006


Alexander Neundorf wrote:
> Von: "Alexander Neundorf" <a.neundorf-work at gmx.net>
>
>   
>> Hi,
>>
>> we have a cmake XCode project which has an install target, but when
>> "building" it from within XCode, it doesn't work since the user doesn't
>> have enough permissions to install to the specified destination.
>> What's the recommended way to do this ?
>>     
>
> P.S. with "building it" I mean "building the install target". Any hints ? 
>
> Thanks
> Alex
>
>   
You could do it from the command line with xcodebuild, there is an 
option to tell what part of the project to build.
So, something like this:

sudo xcodebuild -target INSTALL

-Bill



More information about the CMake mailing list