Skip to content

Commit

Permalink
Add support for custom CMake arguments in setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fbriol committed Nov 25, 2024
1 parent 6e2a305 commit ec41279
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ def cmake_arguments(self, cfg: str, extdir: str) -> List[str]:
'-DFES_BUILD_PYTHON_BINDINGS=ON',
*self.set_cmake_user_options(),
]
if self.cmake_args:
cmake_args.extend(self.cmake_args.split())
return cmake_args

def build_cmake(self, ext) -> None:
Expand Down

0 comments on commit ec41279

Please # to comment.