зеркало из https://github.com/microsoft/vcpkg.git
Rename SCAFFOLD to CREATE to match `vcpkg create`
This commit is contained in:
Родитель
e4ada711c2
Коммит
48fe5f36b2
|
@ -38,7 +38,7 @@ macro(debug_message)
|
|||
endif()
|
||||
endmacro()
|
||||
|
||||
if(CMD MATCHES "^SCAFFOLD$")
|
||||
if(CMD MATCHES "^CREATE$")
|
||||
if(EXISTS ports/${PORT}/portfile.cmake)
|
||||
message(FATAL_ERROR "Portfile already exists: '${VCPKG_ROOT_DIR}/ports/${PORT}/portfile.cmake'")
|
||||
endif()
|
||||
|
|
|
@ -31,7 +31,7 @@ namespace vcpkg
|
|||
custom_filename = Strings::format(LR"( -DFILENAME="%s" )", Strings::utf8_to_utf16(zip_file_name));
|
||||
}
|
||||
|
||||
const std::wstring cmdline = Strings::format(LR"(cmake -DCMD=SCAFFOLD -DPORT=%s -DTARGET_TRIPLET=%s -DURL=%s%s-P "%s")",
|
||||
const std::wstring cmdline = Strings::format(LR"(cmake -DCMD=CREATE -DPORT=%s -DTARGET_TRIPLET=%s -DURL=%s%s-P "%s")",
|
||||
Strings::utf8_to_utf16(spec->name),
|
||||
Strings::utf8_to_utf16(spec->target_triplet.value),
|
||||
Strings::utf8_to_utf16(args.command_arguments.at(1)),
|
||||
|
|
Загрузка…
Ссылка в новой задаче