Skip to content

Commit

Permalink
Merge pull request #287 from FeignClaims/feat/conan_system_package_by…
Browse files Browse the repository at this point in the history
…_default
  • Loading branch information
aminya authored Nov 10, 2024
2 parents 86e68a9 + a20ea83 commit bee4308
Showing 1 changed file with 8 additions and 1 deletion.
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
)
endif()

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

0 comments on commit bee4308

Please sign in to comment.