Skip to content

Commit

Permalink
Replace chdir to the build dir with CMake option '-B<path to build dir>'
Browse files Browse the repository at this point in the history
  • Loading branch information
bgabor666 committed Feb 8, 2016
1 parent e5a468b commit 3a9fbf3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions csibe.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@ def run_cmake(self, cwd):
if not os.path.isdir(self.toolchain_build_dir):
os.makedirs(self.toolchain_build_dir)

os.chdir(self.toolchain_build_dir)
cmake_return_value = subprocess.call(["cmake", self.cmake_toolchain_options, self.csibe_dir])
os.chdir(cwd)
cmake_return_value = subprocess.call(
["cmake",
self.cmake_toolchain_options,
self.csibe_dir,
"-B{}".format(self.toolchain_build_dir)])

return cmake_return_value

Expand Down

0 comments on commit 3a9fbf3

Please sign in to comment.