diff options
| author | wangli28 <wangli28@beyondsoft.com> | 2019-03-27 09:40:19 +0000 |
|---|---|---|
| committer | wangli28 <wangli28@beyondsoft.com> | 2019-03-27 09:41:14 +0000 |
| commit | e3ae651d53a91825a40da9740a6de68731b47b3e (patch) | |
| tree | 2f1ebe1776eca4d2c529f245b256da5b47097bec /ports/cgal | |
| parent | 195e4aa18aae1c79157c2275ccf11dac0a2e818c (diff) | |
| download | vcpkg-e3ae651d53a91825a40da9740a6de68731b47b3e.tar.gz vcpkg-e3ae651d53a91825a40da9740a6de68731b47b3e.zip | |
[many ports]Add long path warnings
Diffstat (limited to 'ports/cgal')
| -rw-r--r-- | ports/cgal/portfile.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ports/cgal/portfile.cmake b/ports/cgal/portfile.cmake index e73547afc..ce9553226 100644 --- a/ports/cgal/portfile.cmake +++ b/ports/cgal/portfile.cmake @@ -1,5 +1,12 @@ include(vcpkg_common_functions) +string(LENGTH "${CURRENT_BUILDTREES_DIR}" BUILDTREES_PATH_LENGTH) +if(BUILDTREES_PATH_LENGTH GREATER 37 AND CMAKE_HOST_WIN32) + message(WARNING "Cgal's buildsystem uses very long paths and may fail on your system.\n" + "We recommend moving vcpkg to a short path such as 'C:\\src\\vcpkg' or using the subst command." + ) +endif() + vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO CGAL/cgal |
