Skip to content

Commit

Permalink
Set build temp
Browse files Browse the repository at this point in the history
  • Loading branch information
romainthomas committed Oct 1, 2023
1 parent a807fec commit 9de43ed
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions api/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ def build_extension(self, ext):
build_temp = Path(self.build_temp)
build_lib = Path(self.build_lib)

cmake_output = build_temp.parent.absolute()
cmake_output = build_temp.absolute()
cmake_bin = which("cmake")

if cmake_bin is None:
Expand All @@ -429,7 +429,11 @@ def build_extension(self, ext):
}

# 1. Configure
configure_cmd = [cmake_bin, "-S", LIEF_DIR.as_posix()] + cmake_conf.gen_cmake_option(cmake_output)
configure_cmd = (
cmake_bin,
"-S", LIEF_DIR.as_posix(),
"-B", cmake_output.as_posix(),
) + cmake_conf.gen_cmake_option(cmake_output)
report("CMake Config:", " ".join(configure_cmd))
subprocess.check_call(configure_cmd, **cmake_subprocess_args)

Expand Down

0 comments on commit 9de43ed

Please sign in to comment.