Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow system package installation for conan by default #287

Merged
merged 2 commits into from
Nov 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/Conan.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ macro(_run_conan1)
# Pass either autodetected settings or a conan profile
${CONAN_SETTINGS}
${OUTPUT_QUIET}
CONF
-c tools.system.package_manager:mode=install
-c tools.system.package_manager:sudo=True
)
endforeach()
endif()
Expand Down Expand Up @@ -217,7 +220,11 @@ macro(_run_conan2)
endif()

if(NOT _args_INSTALL_ARGS)
set(_args_INSTALL_ARGS "--build=missing")
set(_args_INSTALL_ARGS
--build=missing
-c tools.system.package_manager:mode=install
-c tools.system.package_manager:sudo=True
)
FeignClaims marked this conversation as resolved.
Show resolved Hide resolved
endif()

set(CONAN_HOST_PROFILE "${_args_HOST_PROFILE}" CACHE STRING "Conan host profile" FORCE)
Expand Down
Loading