Skip to content

Commit

Permalink
fix: Linter throws again and added clang-format option
Browse files Browse the repository at this point in the history
  • Loading branch information
Taepper committed Jul 10, 2023
1 parent 20e1e99 commit 87cb4a5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
4 changes: 1 addition & 3 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,4 @@ ContinuationIndentWidth: 3
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
PenaltyReturnTypeOnItsOwnLine: 1000
ReferenceAlignment: Left
PointerAlignment: Left
DerivePointerAlignment: false
QualifierAlignment: Left
18 changes: 12 additions & 6 deletions build_with_conan.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env python3
import argparse
import os
import shutil
import argparse
import subprocess


def clean_build_folder(build_folder: str):
Expand Down Expand Up @@ -37,21 +38,26 @@ def main(args):
+ " ".join(conan_options))
print("----------------------------------")

os.system(
"conan install . --build=missing --profile ./conanprofile --profile:build ./conanprofile --output-folder=build "
+ " ".join(conan_options))
conan_install_cmd = "conan install . --build=missing --profile ./conanprofile --profile:build ./conanprofile --output-folder=build " + " ".join(
conan_options)
if subprocess.call(conan_install_cmd, shell=True) != 0:
raise Exception("Conan install command failed.")

print("----------------------------------")
print("cmake " + " ".join(cmake_options) + " -B build")
print("----------------------------------")

os.system("cmake " + " ".join(cmake_options) + " -B build")
cmake_cmd = "cmake " + " ".join(cmake_options) + " -B build"
if subprocess.call(cmake_cmd, shell=True) != 0:
raise Exception("CMake command failed.")

print("----------------------------------")
print(f"cmake --build build --parallel {args.parallel}")
print("----------------------------------")

os.system(f"cmake --build build --parallel {args.parallel}")
cmake_build_cmd = f"cmake --build build --parallel {args.parallel}"
if subprocess.call(cmake_build_cmd, shell=True) != 0:
raise Exception("CMake build command failed.")


if __name__ == "__main__":
Expand Down

0 comments on commit 87cb4a5

Please sign in to comment.