diff options
author | Shauren <shauren.trinity@gmail.com> | 2025-05-02 22:59:45 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2025-08-30 22:55:25 +0200 |
commit | da4bcad2d7e617d4708497f657d64609223b8dc9 (patch) | |
tree | cb992afde1c3fd8ec7d7a2c227907b0bc5a65983 /cmake/compiler/clang/settings.cmake | |
parent | dce2b907029837b155ac0540b8f43d3979e7671d (diff) |
Build: Remove -fpch-instantiate-templates detection, it is enabled by default since CMake 3.19
(cherry picked from commit 55a19f15d01b5f06c158f1dfbd2c43e4f5d6837c)
Diffstat (limited to 'cmake/compiler/clang/settings.cmake')
-rw-r--r-- | cmake/compiler/clang/settings.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/compiler/clang/settings.cmake b/cmake/compiler/clang/settings.cmake index abb29e84cb4..febe93f94df 100644 --- a/cmake/compiler/clang/settings.cmake +++ b/cmake/compiler/clang/settings.cmake @@ -3,6 +3,9 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "AppleClang") # apple doesnt like to do the sane thing which would be to use the same version numbering as regular clang # version number pulled from https://en.wikipedia.org/wiki/Xcode#Toolchain_versions for row matching LLVM 11 set(CLANG_EXPECTED_VERSION 12.0.5) + # enable -fpch-instantiate-templates for AppleClang (by default it is active only for regular clang) + set(CMAKE_C_COMPILE_OPTIONS_INSTANTIATE_TEMPLATES_PCH -fpch-instantiate-templates) + set(CMAKE_CXX_COMPILE_OPTIONS_INSTANTIATE_TEMPLATES_PCH -fpch-instantiate-templates) endif() if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS CLANG_EXPECTED_VERSION) |