Skip to content

Commit

Permalink
feat: automatically install runtimes for vcpkg
Browse files Browse the repository at this point in the history
  • Loading branch information
FeignClaims committed Sep 18, 2024
1 parent 9d693df commit 6584b44
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Vcpkg.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ macro(_checkout_vcpkg_repository)
endif()
endmacro()

macro(_enable_vcpkg_deps_install)
option(X_VCPKG_APPLOCAL_DEPS_INSTALL "(experimental) Automatically copy dependencies into the install target directory for executables. Requires CMake 3.14." ON)
endmacro()

macro(_add_vcpkg_toolchain)
# Setting up vcpkg toolchain
list(APPEND VCPKG_FEATURE_FLAGS "versions")
Expand Down Expand Up @@ -232,6 +236,8 @@ macro(run_vcpkg)
configure_mingw_vcpkg()
# configure_clang_vcpkg()

_enable_vcpkg_deps_install()

# add the vcpkg toolchain
_add_vcpkg_toolchain()

Expand Down

0 comments on commit 6584b44

Please sign in to comment.