Commit 34e01bd26c7639aad5406ccaebd05b9075b02af2

Peter Pettersson 2022-01-20T23:07:05

cmake: disable some gnu extensions

1
2
3
4
5
6
7
8
9
10
11
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 98881b5..e1754e5 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1,5 +1,6 @@
 add_library(git2internal OBJECT)
 set_target_properties(git2internal PROPERTIES C_STANDARD 90)
+set_target_properties(git2internal PROPERTIES C_EXTENSIONS OFF)
 
 
 if(DEPRECATE_HARD)