# The list of include directories is empty by default.

**URL:** https://discourse.cmake.org/t/the-list-of-include-directories-is-empty-by-default/14360
**Category:** Code
**Tags:** os:linux, gen:makefiles
**Created:** [July 14, 2025, 4:43pm UTC](https://discourse.cmake.org/t/the-list-of-include-directories-is-empty-by-default/14360 "2025-07-14T16:43:47Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![gerogaga](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/g/ecae2f/32.png) [@gerogaga](https://discourse.cmake.org/u/gerogaga)
#### Post date: [July 14, 2025, 4:43pm UTC](https://discourse.cmake.org/t/the-list-of-include-directories-is-empty-by-default/14360/1 "2025-07-14T16:43:47Z")

</div>

I have a file with 2 target\_include\_directories() commands, but outside of the directories specified in them, nothing else gets searched for headers, including system directories, and printing the INCLUDE\_DIRECTORIES directory property gives a blank line.  
The two calls are as follows:

```auto
target_include_directories(fake-jni PUBLIC include)
if(LOCAL_INSTALL)
	target_include_directories(fake-jni PUBLIC ${CMAKE_INSTALL_PREFIX}/dep_headers ${CMAKE_INSTALL_PREFIX}/dep_headers/cx)
endif()

```

Nothing else in the CMakeLists.txt touches includes at all. I would appreciate any help in figuring out what’s going on.

---

<div class="post-metadata">

### Author: ![craig.scott](https://discourse.cmake.org/user_avatar/discourse.cmake.org/craig.scott/32/20_2.png) [@craig.scott](https://discourse.cmake.org/u/craig.scott)
#### Post date: [July 14, 2025, 8:39pm UTC](https://discourse.cmake.org/t/the-list-of-include-directories-is-empty-by-default/14360/2 "2025-07-14T20:39:22Z")

</div>

You would need to show the contents of your toolchain file (if you’re using one) and how you’re invoking CMake. It may also be useful to state what CMake version you’re using. Ideally, if you can reduce your project down to a complete, minimal one that can demonstrate the problem, that may also help others spot where things are going awry for you.

Keep in mind that you don’t normally see the default toolchain header search paths on the compiler command line or in any directory or target properties within CMake. The compiler adds those search paths internally. You’ve claimed that the system directories don’t get searched. Can you explain how you verified that?
