From cdb182c1535f960328b6d40c4a173619692ce5f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Leroy?= <frederic.leroy@b-com.com> Date: Fri, 10 Jun 2016 08:58:50 +0200 Subject: [PATCH] CMakeLists.txt: force compilation to gnu89 standard for gccxml clang have changed its default standard to C11 compilation and is stricter. Ensure use of gnu89 standard to use pthread extension for --castxml-gccxml --- cmake_targets/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmake_targets/CMakeLists.txt b/cmake_targets/CMakeLists.txt index d542416315..67cc6cfc3a 100644 --- a/cmake_targets/CMakeLists.txt +++ b/cmake_targets/CMakeLists.txt @@ -1929,6 +1929,11 @@ foreach( d ${DirDefs} ) list(APPEND itti_compiler_options "-I${d}") endforeach() +# castxml doesn't work with c11 (gcc 5 default) +# force castxml and clang compilation with gnu89 standard +# we can't use cXX standard as pthread_rwlock_t is gnu standard +list(APPEND itti_compiler_options "-std=gnu89") + set (ITTI_H ${ITTI_DIR}/intertask_interface_types.h) add_custom_command ( OUTPUT ${OPENAIR_BIN_DIR}/messages.xml -- GitLab