commit 0c1cc7b8643e25a36057622325c3ff27328a4ae2
parent ebdca9b30a2f5c41e88818d36877d4848adf6118
Author: vaplv <vaplv@free.fr>
Date: Fri, 17 Mar 2023 11:37:38 +0100
Set the C standard to C99
This is required by the Sleef header whose comments are written using
C99 style comments
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
@@ -57,7 +57,7 @@ string(REGEX MATCH "[ \t\r\n]+sse4_1[ \t\r\n]+" SSE4_1 ${CPUINFO_OUT})
string(REGEX MATCH "[ \t\r\n]+avx[ \t\r\n]+" AVX ${CPUINFO_OUT})
string(REGEX MATCH "[ \t\r\n]+fma[ \t\r\n]+" FMA ${CPUINFO_OUT})
-set(CFLAGS)
+set(CFLAGS "-std=c99") # Required by the sleef library's c99 style comments
if(SSE2)
unset(SSE2)