summaryrefslogtreecommitdiff
path: root/unittest
diff options
context:
space:
mode:
authorRafael Kitover <rkitover@gmail.com>2022-07-18 05:42:50 -0700
committerGitHub <noreply@github.com>2022-07-18 14:42:50 +0200
commit39dcc7488159e6812292ecbd15a1ed25ade493a2 (patch)
tree0e01d0b1a7e8e0a4c783e4a759ae6bb071efcdce /unittest
parentcc5c78374e320bc7807f04391b70e43deaa54c94 (diff)
downloadccache-39dcc7488159e6812292ecbd15a1ed25ade493a2.tar.gz
ci: Add VS2022 and MSBuild to Windows CI runners (#1108)
Diffstat (limited to 'unittest')
-rw-r--r--unittest/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/unittest/CMakeLists.txt b/unittest/CMakeLists.txt
index 237fead4..4f52bf9c 100644
--- a/unittest/CMakeLists.txt
+++ b/unittest/CMakeLists.txt
@@ -41,6 +41,11 @@ endif()
add_executable(unittest ${source_files})
+if(MSVC)
+ # Turn off /Zc:preprocessor for this test because it triggers a bug in some older Windows 10 SDK headers.
+ set_source_files_properties(test_Stat.cpp PROPERTIES COMPILE_FLAGS /Zc:preprocessor-)
+endif()
+
target_link_libraries(
unittest
PRIVATE standard_settings standard_warnings ccache_framework third_party)