mirror of
https://github.com/Vita3K/Vita3K.git
synced 2026-07-11 01:34:23 +02:00
build: Fix PCH timestamp check with Clang frontend on Windows hosts (#4036)
- The '-fno-pch-timestamp' option should be used for Windows hosts, not Windows targets.
This commit is contained in:
+3
-3
@@ -266,13 +266,13 @@ get_boost()
|
||||
|
||||
if(WIN32)
|
||||
add_compile_definitions("_SILENCE_ALL_CXX17_DEPRECATION_WARNINGS" "_CRT_SECURE_NO_WARNINGS" "NOMINMAX")
|
||||
endif()
|
||||
|
||||
# Disable inclusion of timestamps in PCH files on Windows
|
||||
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||
# Disable inclusion of timestamps in precompiled headers on Windows
|
||||
if(CMAKE_HOST_WIN32 AND (CMAKE_CXX_COMPILER_ID STREQUAL "Clang"))
|
||||
string(APPEND CMAKE_C_FLAGS " -Xclang -fno-pch-timestamp")
|
||||
string(APPEND CMAKE_CXX_FLAGS " -Xclang -fno-pch-timestamp")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Allow per-translation-unit parallel builds when using MSVC
|
||||
if(CMAKE_GENERATOR MATCHES "Visual Studio" AND (CMAKE_C_COMPILER_ID MATCHES "MSVC|Intel|Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "MSVC|Intel|Clang"))
|
||||
|
||||
Reference in New Issue
Block a user