@@ -282,7 +282,7 @@ namespace vcpkg
282
282
const Path& portfile_cmake,
283
283
MessageSink& msg_sink)
284
284
{
285
- const auto debug_share = package_dir / " debug " VCPKG_PREFERRED_SEPARATOR " share " ;
285
+ const auto debug_share = package_dir / FileDebug / FileShare ;
286
286
if (fs.exists (debug_share, IgnoreErrors{}))
287
287
{
288
288
msg_sink.print (Color::warning,
@@ -303,7 +303,7 @@ namespace vcpkg
303
303
const Path& portfile_cmake,
304
304
MessageSink& msg_sink)
305
305
{
306
- if (!fs.exists (package_dir / " share " / package_name / " vcpkg-port-config.cmake " , IgnoreErrors{}))
306
+ if (!fs.exists (package_dir / FileShare / package_name / FileVcpkgPortConfig , IgnoreErrors{}))
307
307
{
308
308
msg_sink.print (Color::warning,
309
309
LocalizedString::from_raw (portfile_cmake)
@@ -327,8 +327,8 @@ namespace vcpkg
327
327
static constexpr StringLiteral STANDARD_INSTALL_USAGE =
328
328
R"###( file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"))###" ;
329
329
330
- auto usage_path_from = port_dir / " usage " ;
331
- auto usage_path_to = package_dir / " share " / package_name / " usage " ;
330
+ auto usage_path_from = port_dir / FileUsage ;
331
+ auto usage_path_to = package_dir / FileShare / package_name / FileUsage ;
332
332
333
333
if (fs.is_regular_file (usage_path_from) && !fs.is_regular_file (usage_path_to))
334
334
{
@@ -467,8 +467,8 @@ namespace vcpkg
467
467
const Path& portfile_cmake,
468
468
MessageSink& msg_sink)
469
469
{
470
- static constexpr StringLiteral copyright_filenames[] = {" COPYING " , " LICENSE " , " LICENSE.txt " };
471
- const auto copyright_file = package_dir / " share " / spec_name / " copyright " ;
470
+ static constexpr StringLiteral copyright_filenames[] = {FileCopying, FileLicense, FileLicenseDotTxt };
471
+ const auto copyright_file = package_dir / FileShare / spec_name / FileCopyright ;
472
472
473
473
switch (fs.status (copyright_file, IgnoreErrors{}))
474
474
{
0 commit comments