]> git.proxmox.com Git - ceph.git/blame - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/scripts/cmake/vcpkg_buildpath_length_warning.cmake
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / scripts / cmake / vcpkg_buildpath_length_warning.cmake
CommitLineData
1e59de90
TL
1#[===[.md:\r
2# vcpkg_buildpath_length_warning\r
3\r
4Warns the user if their vcpkg installation path might be too long for the package they're installing.\r
5\r
6```cmake\r
7vcpkg_buildpath_length_warning(<N>)\r
8```\r
9\r
10`vcpkg_buildpath_length_warning` warns the user if the number of bytes in the\r
11path to `buildtrees` is bigger than `N`. Note that this is simply a warning,\r
12and isn't relied on for correctness.\r
13#]===]\r
14\r
15function(vcpkg_buildpath_length_warning warning_length)\r
16 string(LENGTH "${CURRENT_BUILDTREES_DIR}" buildtrees_path_length)\r
17 if(buildtrees_path_length GREATER warning_length AND CMAKE_HOST_WIN32)\r
18 message(WARNING "${PORT}'s buildsystem uses very long paths and may fail on your system.\n"\r
19 "We recommend moving vcpkg to a short path such as 'C:\\src\\vcpkg' or using the subst command."\r
20 )\r
21 endif()\r
22endfunction()\r