commit | 33ef48b6d65ebf47bc0c60988a430706f586321b | [log] [tgz] |
---|---|---|
author | Cosmin Truta <ctruta@gmail.com> | Wed Sep 04 18:32:03 2024 +0300 |
committer | Cosmin Truta <ctruta@gmail.com> | Wed Sep 04 18:32:03 2024 +0300 |
tree | fc9dee4c7ffc36d1db4b4f5bec0ab6231e5a0123 | |
parent | 532fec021404a5f5ceda068d176fd2ab1cd1955c [diff] |
cmake: Fix the handling of PNG_HARDWARE_OPTIMIZATIONS on FreeBSD/amd64 Because of a missing "amd64" string (in lowercase) in a regex match, the CMake build was unable to pick up the PNG_HARDWARE_OPTIMIZATIONS flag on FreeBSD/amd64 (and possibly other amd64 systems as well). Rename the target arch variable from TARGET_ARCH to a more idiomatic PNG_TARGET_ARCHITECTURE, and set it to an always-lowercase string. The follow-on checks are now simpler and easier to get right.