--- rocksdb-6.6.4/CMakeLists.txt.orig	2020-03-05 09:49:25.366267900 +0300
+++ rocksdb-6.6.4/CMakeLists.txt	2020-03-05 09:56:31.195621500 +0300
@@ -141,7 +141,7 @@
 find_package(Git)
 
 if(GIT_FOUND AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.git")
-  if(WIN32)
+  if(MSVC)
     execute_process(COMMAND $ENV{COMSPEC} /C ${GIT_EXECUTABLE} -C ${CMAKE_CURRENT_SOURCE_DIR} rev-parse HEAD OUTPUT_VARIABLE GIT_SHA)
   else()
     execute_process(COMMAND ${GIT_EXECUTABLE} -C ${CMAKE_CURRENT_SOURCE_DIR} rev-parse HEAD OUTPUT_VARIABLE GIT_SHA)
