diff options
-rw-r--r-- | cmake/msvc.cmake | 2 |
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) |