Skip to content

Commit

Permalink
Add support for additional CMake arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
basnijholt committed Jan 30, 2024
1 parent 11523c5 commit 5ea50be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ def build_extension(self, ext):
"-DPYTHON_INCLUDE_DIR=" + python_include_dir,
]

additional_cmake_args = os.environ.get("CMAKE_ARGS", "")
if additional_cmake_args:
cmake_args += additional_cmake_args.split()

cfg = "Debug" if self.debug else "Release"
build_args = ["--config", cfg]

Expand Down

0 comments on commit 5ea50be

Please sign in to comment.