We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dce2b90 commit da4bcadCopy full SHA for da4bcad
cmake/compiler/clang/settings.cmake
@@ -3,6 +3,9 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "AppleClang")
3
# apple doesnt like to do the sane thing which would be to use the same version numbering as regular clang
4
# version number pulled from https://en.wikipedia.org/wiki/Xcode#Toolchain_versions for row matching LLVM 11
5
set(CLANG_EXPECTED_VERSION 12.0.5)
6
+ # enable -fpch-instantiate-templates for AppleClang (by default it is active only for regular clang)
7
+ set(CMAKE_C_COMPILE_OPTIONS_INSTANTIATE_TEMPLATES_PCH -fpch-instantiate-templates)
8
+ set(CMAKE_CXX_COMPILE_OPTIONS_INSTANTIATE_TEMPLATES_PCH -fpch-instantiate-templates)
9
endif()
10
11
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS CLANG_EXPECTED_VERSION)
0 commit comments