]> granicus.if.org Git - json-c/commitdiff
build,cmake: set C_STANDARD 99 property to libjson-c-static
authorAlexandru Ardelean <ardeleanalex@gmail.com>
Mon, 19 Jun 2017 15:12:03 +0000 (18:12 +0300)
committerAlexandru Ardelean <ardeleanalex@gmail.com>
Mon, 19 Jun 2017 15:12:28 +0000 (18:12 +0300)
Apply the same property as to json-c.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
CMakeLists.txt

index 2d1f31ee636ed4dd6a06ee917cb25fdd0aae29ac..b97a77f066a4813dd416a0046b8fedaa5894e9a1 100644 (file)
@@ -67,6 +67,7 @@ add_library(json-c-static
 )
 
 set_property(TARGET json-c PROPERTY C_STANDARD 99)
+set_property(TARGET json-c-static PROPERTY C_STANDARD 99)
 set_target_properties(json-c-static PROPERTIES OUTPUT_NAME json-c)
 
 install(TARGETS json-c json-c-static