Skip to content

Commit 706e381

Browse files
committed
feat: allow system package installation for conan by default
1 parent 86e68a9 commit 706e381

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Conan.cmake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,11 @@ macro(_run_conan2)
217217
endif()
218218

219219
if(NOT _args_INSTALL_ARGS)
220-
set(_args_INSTALL_ARGS "--build=missing")
220+
set(_args_INSTALL_ARGS
221+
--build=missing
222+
-c tools.system.package_manager:mode=install
223+
-c tools.system.package_manager:sudo=True
224+
)
221225
endif()
222226

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

0 commit comments

Comments
 (0)