Skip to content

Commit 6584b44

Browse files
committed
feat: automatically install runtimes for vcpkg
1 parent 9d693df commit 6584b44

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Vcpkg.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ macro(_checkout_vcpkg_repository)
112112
endif()
113113
endmacro()
114114

115+
macro(_enable_vcpkg_deps_install)
116+
option(X_VCPKG_APPLOCAL_DEPS_INSTALL "(experimental) Automatically copy dependencies into the install target directory for executables. Requires CMake 3.14." ON)
117+
endmacro()
118+
115119
macro(_add_vcpkg_toolchain)
116120
# Setting up vcpkg toolchain
117121
list(APPEND VCPKG_FEATURE_FLAGS "versions")
@@ -232,6 +236,8 @@ macro(run_vcpkg)
232236
configure_mingw_vcpkg()
233237
# configure_clang_vcpkg()
234238

239+
_enable_vcpkg_deps_install()
240+
235241
# add the vcpkg toolchain
236242
_add_vcpkg_toolchain()
237243

0 commit comments

Comments
 (0)