Skip to content

Commit 12f21f3

Browse files
committed
Fix an issue with VS 2022 compatibility - see: facebook#14468
1 parent 641f93b commit 12f21f3

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

0 commit comments

Comments
 (0)