]> git.ipfire.org Git - thirdparty/json-c.git/commitdiff
Target C99 standards to get rid of warnings
authorSteve Gerbino <steve@gerbino.co>
Mon, 26 Sep 2016 04:09:55 +0000 (00:09 -0400)
committerSteve Gerbino <steve@gerbino.co>
Mon, 26 Sep 2016 04:09:55 +0000 (00:09 -0400)
CMakeLists.txt

index 8f645dd574470c2f445568c33054bf1f1de0159f..6f3a951eab452e12ac43c859d9685b4c51599f86 100644 (file)
@@ -54,6 +54,8 @@ add_library(json-c
     ${JSON_C_HEADERS}
 )
 
+set_property(TARGET json-c PROPERTY C_STANDARD 99)
+
 install(TARGETS json-c
     RUNTIME DESTINATION bin
     LIBRARY DESTINATION lib