From 773c1fa876dd80701adf0edc902e081639c72fb7 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Fri, 12 Nov 2021 10:23:33 -0500 Subject: [PATCH] utils: make sure the common utility library gets compiled c99 This will reduce some warnings on older versions of gcc Signed-off-by: Robin Getz --- tests/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 9b63b693f..f819a2b10 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -59,7 +59,7 @@ if(PTHREAD_LIBRARIES OR ANDROID) target_link_libraries(iio_writedev ${PTHREAD_LIBRARIES}) endif() -set_target_properties(${IIO_TESTS_TARGETS} PROPERTIES +set_target_properties(${IIO_TESTS_TARGETS} iio_tests_helper PROPERTIES C_STANDARD 99 C_STANDARD_REQUIRED ON C_EXTENSIONS OFF