Commit cdb182c1 authored by FredericLeroy's avatar FredericLeroy
Browse files

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
parent 22b278d4
......@@ -1929,6 +1929,11 @@ foreach( d ${DirDefs} )
list(APPEND itti_compiler_options "-I${d}")
# 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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment