Skip to content

SystemTools: Add Windows app exec alias support to FileExists()

Not handling execution aliases causes CMake find_program to report false negatives for applications installed through Microsoft Store. As a specific example, this affects PowerShell Core (pwsh.exe) used by Microsoft's vcpkg, rendering it unusable on some machines.

This change preserves the existing behavior of regular symlinks but now treats execution aliases as valid files. The alias target itself is not validated.

Issue: cmake/cmake#22743 (closed)

Edited by Brad King

Merge request reports

Loading