PCH + MSVC ? How to
Answered
hey
Like topic said, how can I add PCH flag to my cmake to use PCH in my project?
TIA
Please sign in to leave a comment.
+1 ????
Hi Dariusz!
It's a general CMake question. I think you can get answers to such questions faster on more relevant forums.
Please see https://stackoverflow.com/questions/148570/using-pre-compiled-headers-with-cmake, for example. Also you can try using https://github.com/sakra/cotire.
Please note that all PCH-related operations/options (including creating and using precompiled headers) have to be mentioned in CMake build script. CLion will not support this feature if, for example, you create PCH-file via command line (out of CMake scope) and then use this PCH in CMakeList.txt.