python: setup.py builds Windows core with cmake in release mode
diff --git a/COMPILE_CMAKE.TXT b/COMPILE_CMAKE.TXT
index 2226e76..5560fa7 100644
--- a/COMPILE_CMAKE.TXT
+++ b/COMPILE_CMAKE.TXT
@@ -56,7 +56,7 @@
 
       mkdir build
       cd build
-      cmake -G "NMake Makefiles" ..
+      cmake -DCMAKE_BUILD_TYPE=RELEASE -G "NMake Makefiles" ..
       nmake
 
   After this, find the samples test*.exe, libcapstone_static.lib & libcapstone.dll
diff --git a/bindings/python/setup.py b/bindings/python/setup.py
index 068c635..385137d 100644
--- a/bindings/python/setup.py
+++ b/bindings/python/setup.py
@@ -131,7 +131,7 @@
                     os.mkdir("build")
                     os.chdir("build")
                     # Do not build tests & static library
-                    os.system('cmake -DCAPSTONE_BUILD_TESTS=0 -DCAPSTONE_BUILD_STATIC=0 -G "NMake Makefiles" ..')
+                    os.system('cmake -DCMAKE_BUILD_TYPE=RELEASE -DCAPSTONE_BUILD_TESTS=0 -DCAPSTONE_BUILD_STATIC=0 -G "NMake Makefiles" ..')
                     os.system("nmake")
                     os.chdir("..")