Skip to content

Commit

Permalink
Specify build type in setup.py.
Browse files Browse the repository at this point in the history
  • Loading branch information
qnzhou committed Sep 12, 2018
1 parent d57434f commit dab9e07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Expand Up @@ -59,7 +59,7 @@ def build_third_party(self):
os.makedirs(build_dir);

os.chdir(build_dir);
command = "cmake ..";
command = "cmake .. -DCMAKE_BUILD_TYPE=Release";
check_call(command.split());
command = "make -j {}".format(num_cores);
check_call(command.split());
Expand All @@ -75,7 +75,7 @@ def build_pymesh(self):
os.makedirs(build_dir);

os.chdir(build_dir);
command = "cmake .. -DPythonLibsNew_FIND_VERSION={v[0]}.{v[1]}".format(
command = "cmake .. -DCMAKE_BUILD_TYPE=Release -DPythonLibsNew_FIND_VERSION={v[0]}.{v[1]}".format(
v=platform.python_version_tuple());
check_call(command.split());
command = "make";
Expand Down

0 comments on commit dab9e07

Please sign in to comment.