Skip to content

Commit

Permalink
Allow passing cmd line arg for build type to build_pyj3dultra
Browse files Browse the repository at this point in the history
  • Loading branch information
LagoLunatic committed Mar 29, 2024
1 parent dd43406 commit ab6dcd5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build_pyj3dultra.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ def call_command(command):
call_command(cmake_command)

build_command = ["cmake", "--build", "PyJ3DUltra/build"]
build_type = "Release"
if len(sys.argv) > 1:
build_type = sys.argv[1]
build_command += ["--config %s" % build_type]
call_command(build_command)

print("Successfully compiled PyJ3DUltra.")

0 comments on commit ab6dcd5

Please sign in to comment.