Skip to content

Commit

Permalink
Add system package manager install parameter to conan install
Browse files Browse the repository at this point in the history
  • Loading branch information
patkenneally committed Mar 16, 2023
1 parent 128e896 commit 2b576ce
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,9 +337,15 @@ def add_basilisk_to_sys_path(self):
# run conan install
conanCmdString = list()
if is_running_virtual_env() or platform.system() == "Windows":
conanCmdString.append('python -m conans.conan install . --build=missing')
conanCmdString.append('python -m conans.conan install . '
'--build=missing '
'-c tools.system.package_manager:mode=install '
'-c tools.system.package_manager:sudo=True')
else:
conanCmdString.append('python3 -m conans.conan install . --build=missing')
conanCmdString.append('python3 -m conans.conan install . '
'--build=missing '
'-c tools.system.package_manager:mode=install '
'-c tools.system.package_manager:sudo=True')
conanCmdString.append(' -s build_type=' + str(args.buildType))
conanCmdString.append(' -if ' + buildFolderName)
if args.generator:
Expand Down

0 comments on commit 2b576ce

Please sign in to comment.