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
This commit is contained in:
Frédéric Leroy
2016-06-15 14:07:54 +02:00
parent 22b278d43b
commit cdb182c153
+5
View File
@@ -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