Skip to content

Commit

Permalink
fix verbose mode
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesneimog committed Jul 21, 2024
1 parent 5aeebd0 commit 283c66d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
7 changes: 3 additions & 4 deletions Sources/pd4web/Builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,11 +418,10 @@ def ConfigureProject(self):
"-G",
"Ninja",
]
if not self.Pd4Web.verbose:
command.append("--no-warn-unused-cli")
command.append("-Wno-dev")

print(self.Pd4Web.verbose)
result = subprocess.run(
command, capture_output=True, text=True).returncode
command, capture_output=not self.Pd4Web.verbose, text=True).returncode
if result != 0:
raise Exception("Error: Could not configure the project")
os.chdir(cwd)
Expand Down
1 change: 0 additions & 1 deletion Sources/pd4web/Pd4Web.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ def InitVariables(self):
self.externalsLinkLibraries = []
self.externalsLinkLibrariesFolders = []
self.externalsSetupFunctions = []
self.verbose = False

def CheckDependencies(self):
OK = shutil.which("git")
Expand Down

0 comments on commit 283c66d

Please sign in to comment.