Skip to content

Commit

Permalink
logging for cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Feb 19, 2023
1 parent ea0daf9 commit 05e7a43
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lowtran/cmake.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import shutil
from pathlib import Path
import os
import logging

__all__ = ["build"]

Expand All @@ -23,9 +24,9 @@ def build(source_dir: Path, build_dir: Path) -> None:

# %% Configure
cmd = [cmake, f"-B{build_dir}", f"-S{source_dir}", f"-G{gen}"]

logging.info(" ".join(cmd))
subprocess.check_call(cmd)
# %% Build
cmd = [cmake, "--build", str(build_dir), "--parallel"]

logging.info(" ".join(cmd))
subprocess.check_call(cmd)

0 comments on commit 05e7a43

Please sign in to comment.