Skip to content

Commit db24067

Browse files
committed
Fix an issue with VS 2022 compatibility - see: facebook#14468
1 parent 8dbe94a commit db24067

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
@@ -509,6 +509,9 @@ elseif(CMAKE_SYSTEM_NAME MATCHES "Windows")
509509
add_definitions(-DWIN32 -DOS_WIN -D_MBCS -DWIN64 -DNOMINMAX)
510510
if(MINGW)
511511
add_definitions(-D_WIN32_WINNT=_WIN32_WINNT_VISTA)
512+
else()
513+
# Fix an issue with VS 2022 compatibility - see: https://github.com/facebook/rocksdb/issues/14468
514+
add_definitions(-D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR)
512515
endif()
513516
endif()
514517

0 commit comments

Comments
 (0)