Skip to content

Commit

Permalink
feat: allow system package installation for conan by default
Browse files Browse the repository at this point in the history
  • Loading branch information
FeignClaims committed Oct 28, 2024
1 parent 86e68a9 commit 706e381
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Conan.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,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
)
endif()

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

0 comments on commit 706e381

Please sign in to comment.