--- LibREDasm/depends/capstone/CMakeLists.txt.orig	2018-11-25 14:12:05 UTC
+++ LibREDasm/depends/capstone/CMakeLists.txt
@@ -1,23 +1,6 @@
-cmake_minimum_required(VERSION 2.6)
-project(capstone)
+cmake_minimum_required(VERSION 3.10)
+project(capstone VERSION 4.0.0)
 
-set(VERSION_MAJOR 4)
-set(VERSION_MINOR 0)
-set(VERSION_PATCH 0)
-
-if(POLICY CMP0042)
-  # http://www.cmake.org/cmake/help/v3.0/policy/CMP0042.html
-  cmake_policy(SET CMP0042 NEW)
-endif(POLICY CMP0042)
-
-if (POLICY CMP0048)
-  # use old policy to honor version set using VERSION_* variables to preserve backwards
-  # compatibility. change OLD to NEW when minimum cmake version is updated to 3.* and
-  # set VERSION using project(capstone VERSION 4.0.0).
-  # http://www.cmake.org/cmake/help/v3.0/policy/CMP0048.html
-  cmake_policy (SET CMP0048 OLD)
-endif()
-
 # to configure the options specify them in in the command line or change them in the cmake UI.
 # Don't edit the makefile!
 option(CAPSTONE_BUILD_STATIC_RUNTIME "Embed static runtime" ON)
@@ -485,7 +468,7 @@ include_directories("${PROJECT_SOURCE_DIR}/include")
 
 ## properties
 # version info
-set_property(GLOBAL PROPERTY VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH})
+set_property(GLOBAL PROPERTY VERSION ${PROJECT_VERSION})
 
 ## targets
 if (CAPSTONE_BUILD_STATIC)
@@ -517,8 +500,8 @@ if (CAPSTONE_BUILD_SHARED)
         set_target_properties(capstone-shared PROPERTIES IMPORT_SUFFIX _dll.lib)
     else()
         set_target_properties(capstone-shared PROPERTIES
-	    VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}
-	    SOVERSION ${VERSION_MAJOR})
+	    VERSION ${PROJECT_VERSION}
+	    SOVERSION ${PROJECT_VERSION_MAJOR})
     endif ()
 
     if(NOT DEFINED default-target)      # honor `capstone-static` for tests first.
