# Help with target\_precompile\_headers

**URL:** <https://discourse.cmake.org/t/help-with-target-precompile-headers/1065>\
**Category:** Code\
**Created:** [April 20, 2020, 5:12pm UTC](https://discourse.cmake.org/t/help-with-target-precompile-headers/1065 "2020-04-20T17:12:09Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![polar](https://discourse.cmake.org/user_avatar/discourse.cmake.org/polar/32/542_2.png) [@polar](https://discourse.cmake.org/u/polar)\
**Post date:** [April 20, 2020, 6:19pm UTC](https://discourse.cmake.org/t/help-with-target-precompile-headers/1065/2 "2020-04-20T18:19:55Z")

</div>

Actually, this approach does not work, since `${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/some_target.dir/cmake_pch.cxx` will not exist at the time of CMake configuration.

---

_[View the full topic](https://discourse.cmake.org/t/help-with-target-precompile-headers/1065)._
