blob: ffe2842cff8062d234e9e8779a7a8fe7308299f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
$NetBSD: patch-CMakeLists.txt,v 1.2 2022/12/08 10:39:00 adam Exp $
Don't force -std=gnu99 if we want to possibly use C11
for aligned_alloc
--- CMakeLists.txt.orig 2022-12-07 10:34:44.000000000 +0000
+++ CMakeLists.txt
@@ -215,8 +215,6 @@ if(CMAKE_SYSTEM_PROCESSOR STREQUAL i386
CMAKE_SYSTEM_PROCESSOR STREQUAL amd64 OR
CMAKE_SYSTEM_PROCESSOR STREQUAL AMD64)
if(CMAKE_C_COMPILER_ID STREQUAL GNU)
- # We need C99 (GNU99 more exactly)
- SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99")
set(COMPILER_SUPPORT_SSE2 TRUE)
if(CMAKE_C_COMPILER_VERSION VERSION_GREATER 4.7 OR CMAKE_C_COMPILER_VERSION VERSION_EQUAL 4.7)
set(COMPILER_SUPPORT_AVX2 TRUE)
|