Using pre-compiled headers with CMake
There is a third party CMake module named ‘Cotire’ which automates the use of precompiled headers for CMake based build systems and also supports unity builds.
There is a third party CMake module named ‘Cotire’ which automates the use of precompiled headers for CMake based build systems and also supports unity builds.
This is often a caching problem. Usually it can be resolved by holding down the Option key and choosing Product > Clean Build Folder…
NOTE: Later versions of the IDE may use “pch” rather than “stdafx” in the default names for related files. It may be necessary to substitute pch for stdafx in the instructions below. I apologize. It’s not my fault. Right-click on your project in the Solution Explorer. Click Properties at the bottom of the drop-down menu. … Read more