larsch / cmake-precompiled-header

Visual Studio and GCC precompiled header macro for CMake
160 stars 42 forks source link

Add support for Clang #15

Open vinipsmaker opened 6 years ago

onqtam commented 6 years ago

well this seems like a proper PR!

dutow commented 6 years ago

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