AcademySoftwareFoundation / openvdb

OpenVDB - Sparse volume data structure and tools
http://www.openvdb.org/
Mozilla Public License 2.0
2.62k stars 647 forks source link

Only emit SIMD compiler flags on x86-based platforms #1645

Closed jmather-sesi closed 1 year ago

jmather-sesi commented 1 year ago

Enabling the SSE4.2 or AVX SIMD flags on non-x86 based platforms will result in a compilation error stating that the -msse4.2 and -mavx flags cannot be found. This patch causes the flags to only be emitted on x86-based platforms.

linux-foundation-easycla[bot] commented 1 year ago

CLA Signed

The committers listed above are authorized under a signed CLA.