[vcpkg] Fix build for non-windows

This commit is contained in:
Robert Schumacher 2020-03-13 21:00:21 -07:00
parent 60cd1202d9
commit e2efb82aa8

View File

@ -79,7 +79,14 @@ namespace vcpkg::Commands::Env
if (build_env_cmd.empty())
return clean_env;
else
{
#ifdef _WIN32
return System::cmd_execute_modify_env(build_env_cmd, clean_env);
#else
Checks::exit_with_message(VCPKG_LINE_INFO,
"Build environment commands are not supported on this platform");
#endif
}
}();
std::string cmd = args.command_arguments.empty() ? "cmd" : args.command_arguments.at(0);