--- bullet3-2.87/examples/SharedMemory/CMakeLists.txt.orig	2018-05-16 08:54:35.625278800 +0300
+++ bullet3-2.87/examples/SharedMemory/CMakeLists.txt	2018-05-16 08:55:52.752814400 +0300
@@ -291,6 +291,7 @@
 
 
 IF (NOT INTERNAL_CREATE_DISTRIBUTABLE_MSVC_PROJECTFILES)
+	IF (MSVC)
 	IF (CMAKE_CL_64)
 		ADD_CUSTOM_COMMAND(
 			TARGET App_PhysicsServer_SharedMemory_VR
@@ -304,6 +305,7 @@
 			COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${BULLET_PHYSICS_SOURCE_DIR}/examples/ThirdPartyLibs/openvr/bin/win32/openvr_api.dll  ${CMAKE_CURRENT_BINARY_DIR}/openvr_api.dll
 		)
 	ENDIF(CMAKE_CL_64)
+	ENDIF(MSVC)
 
 	ADD_CUSTOM_COMMAND(
                 TARGET App_PhysicsServer_SharedMemory_VR
