cmake-precompiled-header icon indicating copy to clipboard operation
cmake-precompiled-header copied to clipboard

Add support for Clang

Open vinipsmaker opened this issue 7 years ago • 2 comments

vinipsmaker avatar Feb 22 '18 15:02 vinipsmaker

well this seems like a proper PR!

onqtam avatar Apr 12 '18 10:04 onqtam

Just note that compared to GCC, clang only uses PCHs with the FORCEINCLUDE option, so you'll probably need something like this: https://github.com/dutow/cmake-precompiled-header/commit/35ee8adbc575a958e0bbb657da640131aae33a9e

https://clang.llvm.org/docs/UsersManual.html#using-a-pch-file

dutow avatar Apr 12 '18 10:04 dutow