python: setup.py builds Windows core with cmake in release mode

This commit is contained in:
Nguyen Anh Quynh 2015-02-03 17:45:55 +08:00
parent c6b1be8b0b
commit 8aef143f69
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ Get CMake for free from http://www.cmake.org.
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

View File

@ -132,7 +132,7 @@ class custom_build_clib(build_clib):
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("..")