# Possible to quiet specific installs?

**URL:** <https://discourse.cmake.org/t/possible-to-quiet-specific-installs/3869>\
**Category:** Code\
**Created:** [August 3, 2021, 12:29pm UTC](https://discourse.cmake.org/t/possible-to-quiet-specific-installs/3869 "2021-08-03T12:29:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mathomp4](https://discourse.cmake.org/user_avatar/discourse.cmake.org/mathomp4/32/176_2.png) [@mathomp4](https://discourse.cmake.org/u/mathomp4)\
**Post date:** [August 3, 2021, 12:29pm UTC](https://discourse.cmake.org/t/possible-to-quiet-specific-installs/3869/1 "2021-08-03T12:29:29Z")

</div>

I think the answer to this is “no” from my reading of the docs, but I want to be sure. In my project, I have this little chunk of code from @scivision where we auto-gitignore our build dirs and I then use `install()` to auto-gitignore install dirs:

```cmake
# https://www.scivision.dev/cmake-auto-gitignore-build-dir/
# --- auto-ignore build directory
if(NOT EXISTS ${PROJECT_BINARY_DIR}/.gitignore)
  file(WRITE ${PROJECT_BINARY_DIR}/.gitignore "*")
endif()

# Piggyback that file into install
install(
   FILES ${PROJECT_BINARY_DIR}/.gitignore
   DESTINATION ${CMAKE_INSTALL_PREFIX}
   )

```

And it seems to work great! The one sort of annoying thing is this:

```auto
-- Installing: /path/to/install-Release/.gitignore

```

I was just wondering if there was a way I could quiet that message for _just_ that install? Just to make my install stage a little more focused on files that matter?

I do know about (and use) `CMAKE_INSTALL_MESSAGE` and have:

```cmake
set (CMAKE_INSTALL_MESSAGE LAZY)

```

set in my projects and I know I could do `NEVER` but that would suppress _all_ my install messages and I do like to see them for the things that matter.
