# How to suppress the preprocessor define CMAKE\_INTDIR?

**URL:** https://discourse.cmake.org/t/how-to-suppress-the-preprocessor-define-cmake-intdir/13551
**Category:** Usage
**Created:** [February 7, 2025, 3:54pm UTC](https://discourse.cmake.org/t/how-to-suppress-the-preprocessor-define-cmake-intdir/13551 "2025-02-07T15:54:47Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![exoosh](https://discourse.cmake.org/user_avatar/discourse.cmake.org/exoosh/32/4077_2.png) [@exoosh](https://discourse.cmake.org/u/exoosh)
#### Post date: [February 7, 2025, 3:54pm UTC](https://discourse.cmake.org/t/how-to-suppress-the-preprocessor-define-cmake-intdir/13551/1 "2025-02-07T15:54:47Z")

</div>

Hi,

how can I suppress **the preprocessor define `CMAKE_INTDIR`**?

I understand it appears in multi-config builds, I can appreciate the thoughts behind it (`CMAKE_CFG_INTDIR`). I don’t want it. It serves no purpose in my builds and I would like to get rid of it.

How can I suppress it? So far I haven’t found an option that will work from a top-level `CMakeLists.txt` and get propagated everywhere. And unfortunately it doesn’t seem to be controlled by CMake script at all, at least a cursory look in `/usr/share/cmake-3.31` only brings up `Help/variable/CMAKE_CFG_INTDIR.rst`; the documentation for `CMAKE_CFG_INTDIR`.
