diff options
author | Martijn van Beurden <mvanb1@gmail.com> | 2022-03-04 14:02:37 +0100 |
---|---|---|
committer | Martijn van Beurden <mvanb1@gmail.com> | 2022-04-26 20:52:20 +0200 |
commit | f6b78e69e0dbcee5419f339d77881ab61579790e (patch) | |
tree | c634699f49fc90edfd415085fd48fd2abba297e2 /config.cmake.h.in | |
parent | c157be0f7716a0d314cb14e54cefb89a66d730ec (diff) | |
download | flac-f6b78e69e0dbcee5419f339d77881ab61579790e.tar.gz |
[CMake] Honor WITH_AVX
Fixes https://github.com/xiph/flac/issues/286
Diffstat (limited to 'config.cmake.h.in')
-rw-r--r-- | config.cmake.h.in | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/config.cmake.h.in b/config.cmake.h.in index 9f2bc064..4f424977 100644 --- a/config.cmake.h.in +++ b/config.cmake.h.in @@ -50,8 +50,10 @@ #cmakedefine FLAC__USE_ALTIVEC /* define to enable use of AVX instructions */ -#cmakedefine01 WITH_AVX -#define FLAC__USE_AVX WITH_AVX +#cmakedefine WITH_AVX +#ifdef WITH_AVX + #define FLAC__USE_AVX +#endif /* define to enable use of VSX instructions */ #cmakedefine FLAC__USE_VSX |