[CMake] cmake install

Adam Getchell adam.getchell at gmail.com
Fri Sep 8 21:19:57 EDT 2017


> On Sep 8, 2017, at 6:11 PM, Craig Scott <craig.scott at crascit.com> wrote:
> 
> I tried:
> 
> # cmake -G Ninja .
> # cmake --build .
> # cmake --build . --target install
> 
> This should be correct. Did this not work for you?

No.

https://travis-ci.org/acgetchell/CDT-plusplus/jobs/273498700

Thanks for your help.

>  
> 
> If its somewhere in the manual, I’d appreciate pointers.
> 
> Which part were you looking for? The use of --target is documented as part of the Build Tool Mode <https://cmake.org/cmake/help/git-master/manual/cmake.1.html#build-tool-mode> section, but it seems you've already figured out that part. There's nothing technically special about the install target as far as I'm aware, you should be able to refer to it as a build target like you've done above.
>  
> 
> Craig Scott
> Melbourne, Australia
> https://crascit.com <https://crascit.com/>
-- 
Adam Getchell
https://keybase.io/adamgetchell

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20170908/ba810941/attachment-0001.html>


More information about the CMake mailing list