summaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2021-12-17 14:18:41 +0100
committerStanislaw Halik <sthalik@misaki.pl>2021-12-17 20:27:17 +0100
commitc174ccfb7b22cfc39c03b153d112b43f8cbd92fa (patch)
tree790917eef1e8cacaf455c9d097fba50bc0d26dbb /cmake
parentda4ee3868d7a014be42e998a7b7c98a149586d85 (diff)
cmake/msvc: workaround clangd offsetof() warning
Diffstat (limited to 'cmake')
-rw-r--r--cmake/msvc.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/msvc.cmake b/cmake/msvc.cmake
index 54738acf..ec6eef31 100644
--- a/cmake/msvc.cmake
+++ b/cmake/msvc.cmake
@@ -24,6 +24,8 @@ add_compile_options(-diagnostics:classic)
#add_compile_options(-d2cgsummary)
add_definitions(-D_HAS_EXCEPTIONS=0)
add_compile_options(-Zc:preprocessor)
+add_compile_options(-wd4117)
+add_definitions(-D_CRT_USE_BUILTIN_OFFSETOF)
if(CMAKE_PROJECT_NAME STREQUAL "opentrack")
#include("${CMAKE_CURRENT_LIST_DIR}/opentrack-policy.cmake" NO_POLICY_SCOPE)