File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -453,7 +453,7 @@ if (LLVM_COMPILER_IS_GCC_COMPATIBLE)
453453 endif ()
454454
455455 # GCC requires this flag in order for precompiled headers to work with ccache
456- if (CMAKE_CXX_COMPILER_ID MATCHES GCC AND NOT CMAKE_DISABLE_PRECOMPILE_HEADERS)
456+ if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND NOT CMAKE_DISABLE_PRECOMPILE_HEADERS)
457457 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpch-preprocess" )
458458 endif ()
459459endif ()
@@ -467,7 +467,7 @@ if (APPLE)
467467endif ()
468468
469469# Clang requires this flag in order for precompiled headers to work with ccache
470- if (CMAKE_CXX_COMPILER_ID MATCHES Clang AND NOT CMAKE_DISABLE_PRECOMPILE_HEADERS)
470+ if (CMAKE_CXX_COMPILER_ID MATCHES " Clang" AND NOT CMAKE_DISABLE_PRECOMPILE_HEADERS)
471471 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Xclang -fno-pch-timestamp" )
472472endif ()
473473
You can’t perform that action at this time.
0 commit comments