cmake-precompiled-header
cmake-precompiled-header copied to clipboard
The GNUCXX custom_command copy DEPENDENCY doesn't track headers included by the pch
Adding "IMPLICIT_DEPENDS CXX ${_pch_header}" in addition to "DEPENDS ${_pch_header}" fixed it for me. https://github.com/LucidFusionLabs/cmake-precompiled-header/commit/27eda54069418de6ed1b72d5ed0419c8a7b16d04 is the fork I'm using. Thanks!
This. SO MUCH THIS.