aklomp / base64

Fast Base64 stream encoder/decoder in C99, with SIMD acceleration
BSD 2-Clause "Simplified" License
866 stars 162 forks source link

[cmake] Fix architecture dependent option selection #94

Closed BurningEnlightenment closed 2 years ago

BurningEnlightenment commented 2 years ago

Set boolean variables based on the OUTPUT_VARIABLE and the detected architecture name and use them for architecture dependent option availability testing.

Earlier CMake versions (< 3.22) evaluate the <depends> parameter of cmake_dependent_option() in a way which prevents STREQUAL based conditions to be meaningfully evaluated. See CMP0127 for details.

Fixes #93