From 5f74a081e10fd00d00f84f6f9e657e213854e011 Mon Sep 17 00:00:00 2001 From: Hunter Allen Date: Fri, 23 Dec 2016 10:34:17 -0600 Subject: [PATCH] Require C11 (#101) * Made CMake enforce the C11 standard during build. --- rcl_lifecycle/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/rcl_lifecycle/CMakeLists.txt b/rcl_lifecycle/CMakeLists.txt index d082fca..a6802d8 100644 --- a/rcl_lifecycle/CMakeLists.txt +++ b/rcl_lifecycle/CMakeLists.txt @@ -46,6 +46,7 @@ call_for_each_rmw_implementation(targets GENERATE_DEFAULT) if(BUILD_TESTING) if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") + set(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} "-std=c11") set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-std=c++14") add_compile_options(-Wall -Wextra -Wpedantic) endif()