diff options
| author | autoantwort <41973254+autoantwort@users.noreply.github.com> | 2021-04-01 19:39:35 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-01 10:39:35 -0700 |
| commit | c02feb90c2e321ec0cc99e5651c4fa9827dcdf1c (patch) | |
| tree | 913872b43777e06a70ed925cf14ee358a2c5be29 | |
| parent | 6563298448e5d5b6c1b8b12de074d6e711385946 (diff) | |
| download | vcpkg-c02feb90c2e321ec0cc99e5651c4fa9827dcdf1c.tar.gz vcpkg-c02feb90c2e321ec0cc99e5651c4fa9827dcdf1c.zip | |
vcpkg_copy_tool_dependencies: show description how to install powershell (#16347)
| -rw-r--r-- | scripts/cmake/vcpkg_copy_tool_dependencies.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/cmake/vcpkg_copy_tool_dependencies.cmake b/scripts/cmake/vcpkg_copy_tool_dependencies.cmake index 73a9cc4e6..0cb0bbcef 100644 --- a/scripts/cmake/vcpkg_copy_tool_dependencies.cmake +++ b/scripts/cmake/vcpkg_copy_tool_dependencies.cmake @@ -23,6 +23,9 @@ function(vcpkg_copy_tool_dependencies TOOL_DIR) if (VCPKG_TARGET_IS_WINDOWS) find_program(PWSH_EXE pwsh) if (NOT PWSH_EXE) + if(UNIX AND NOT CYGWIN) + message(FATAL_ERROR "Could not find PowerShell Core; install PowerShell Core as described here: https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-linux") + endif() message(FATAL_ERROR "Could not find PowerShell Core; please open an issue to report this.") endif() macro(search_for_dependencies PATH_TO_SEARCH) |
