# What is difference between install, install/local and install/strip?

**URL:** https://discourse.cmake.org/t/what-is-difference-between-install-install-local-and-install-strip/1329
**Category:** Usage
**Tags:** os:linux, gen:ninja, gen:makefiles
**Created:** [June 4, 2020, 6:53pm UTC](https://discourse.cmake.org/t/what-is-difference-between-install-install-local-and-install-strip/1329 "2020-06-04T18:53:05Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![cnruby](https://discourse.cmake.org/user_avatar/discourse.cmake.org/cnruby/32/663_2.png) [@cnruby](https://discourse.cmake.org/u/cnruby)
#### Post date: [June 4, 2020, 6:53pm UTC](https://discourse.cmake.org/t/what-is-difference-between-install-install-local-and-install-strip/1329/1 "2020-06-04T18:53:06Z")

</div>

I run the following command

```auto
cd build && ninja help

```

to get these targets

```auto
[1/1] All primary targets available:
install/strip: phony
install/local: phony
install: phony
...

```

What is difference between install, install/local and install/strip?

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [November 10, 2020, 2:42pm UTC](https://discourse.cmake.org/t/what-is-difference-between-install-install-local-and-install-strip/1329/2 "2020-11-10T14:42:17Z")

</div>

`install` is the typical “put things into the install tree” target. `install/strip` then strips debug information from the installed binaries. `install/local` seems to avoid installing any subdirectories (which is kind of useless with Ninja since you can only do that from the top-level directory).

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [November 10, 2020, 2:45pm UTC](https://discourse.cmake.org/t/what-is-difference-between-install-install-local-and-install-strip/1329/3 "2020-11-10T14:45:24Z")

</div>

I’ve filed [an issue](https://gitlab.kitware.com/cmake/cmake/-/issues/21419) to remove `install/local` from Ninja (we can also add per-directory `/install` targets, but I don’t know how useful that would be).
