# cmake: correct PIE support detection, add error output for debugging · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/41dbd0d0da0989495a97e99fb9269a49ac302768)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 41dbd0d0da0989495a97e99fb9269a49ac302768

Requested commit: 41dbd0d0da0989495a97e99fb9269a49ac302768

Commit: 41dbd0d0da0989495a97e99fb9269a49ac302768

Tree: 18a043e574ada883a6d01738f387cc6f5486a0e3

Author: Jan200101

Committer: Alex Rønne Petersen

## Message

```
cmake: correct PIE support detection, add error output for debugging
`check_pie_supported` only uses the `OUTPUT_VARIABLE` to to signify errors
if PIE is actually supported is signaled by `CMAKE_<lang>_LINK_PIE_SUPPORTED`.

Checking if `OUTPUT_VARIABLE` is empty is not enough either since the check
is bypassed if its results are cached but the output variable is not cached.

```

## Parents

- [901f344be2fb822df2c431017833899450779c4d](https://git.cafe/gitcafe/zig/commit/901f344be2fb822df2c431017833899450779c4d?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/41dbd0d0da0989495a97e99fb9269a49ac302768?format=markdown)
