Skip to content

Commit df1aba9

Browse files
committed
Fix an issue with VS 2022 compatibility - see: facebook#14468
1 parent 3a52871 commit df1aba9

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,9 @@ elseif(CMAKE_SYSTEM_NAME MATCHES "Windows")
529529
add_definitions(-DWIN32 -DOS_WIN -D_MBCS -DWIN64 -DNOMINMAX)
530530
if(MINGW)
531531
add_definitions(-D_WIN32_WINNT=_WIN32_WINNT_VISTA)
532+
else()
533+
# Fix an issue with VS 2022 compatibility - see: https://github.com/facebook/rocksdb/issues/14468
534+
add_definitions(-D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR)
532535
endif()
533536
endif()
534537

0 commit comments

Comments
 (0)