Skip to content

Commit 5027468

Browse files
committed
Fix an issue with VS 2022 compatibility - see: facebook#14468
1 parent 199ed3c commit 5027468

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
@@ -523,6 +523,9 @@ elseif(CMAKE_SYSTEM_NAME MATCHES "Windows")
523523
add_definitions(-DWIN32 -DOS_WIN -D_MBCS -DWIN64 -DNOMINMAX)
524524
if(MINGW)
525525
add_definitions(-D_WIN32_WINNT=_WIN32_WINNT_VISTA)
526+
else()
527+
# Fix an issue with VS 2022 compatibility - see: https://github.com/facebook/rocksdb/issues/14468
528+
add_definitions(-D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR)
526529
endif()
527530
endif()
528531

0 commit comments

Comments
 (0)