diff --git a/src/vcpkg/commands.build.cpp b/src/vcpkg/commands.build.cpp index 92cf8cc306..745c6d0e13 100644 --- a/src/vcpkg/commands.build.cpp +++ b/src/vcpkg/commands.build.cpp @@ -695,7 +695,9 @@ namespace vcpkg paths.packages() / fmt::format("{}_{}", FileDetectCompiler, triplet.canonical_name())}, // The detect_compiler "port" doesn't depend on the host triplet, so always natively compile {CMakeVariableHostTriplet, triplet.canonical_name()}, - {CMakeVariableCompilerCacheFile, paths.installed().compiler_hash_cache_file()}}; + {CMakeVariableCompilerCacheFile, paths.installed().compiler_hash_cache_file()}, + }; + get_generic_cmake_build_args(paths, triplet, toolset, cmake_args); auto cmd = vcpkg::make_cmake_cmd(paths, paths.ports_cmake, std::move(cmake_args));