--- bullet3-2.87/CMakeLists.txt.orig	2018-05-16 08:18:58.990229200 +0300
+++ bullet3-2.87/CMakeLists.txt	2018-05-16 08:19:04.029038000 +0300
@@ -350,11 +350,11 @@
 		endif()
 	ENDIF()
 
-	IF(WIN32)
+	IF(MSVC)
 		SET(BUILD_SHARED_LIBS OFF CACHE BOOL "Shared Libs" FORCE)
-	ELSE(WIN32)
+	ELSE(MSVC)
 		SET(BUILD_SHARED_LIBS ON CACHE BOOL "Shared Libs" FORCE)
-	ENDIF(WIN32)
+	ENDIF(MSVC)
 
 	IF(APPLE)
 		OPTION(BUILD_PYBULLET_MAC_USE_PYTHON_FRAMEWORK "Set when you want to use the Python Framework on Mac" ON)