Skip to content

Commit

Permalink
cxx/c flags
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Brawner <[email protected]>
  • Loading branch information
brawner committed Aug 7, 2020
1 parent a88dbbb commit 897314f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rmw/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ if(BUILD_TESTING)
list(APPEND AMENT_LINT_AUTO_EXCLUDE ament_cmake_cppcheck)
ament_cppcheck(INCLUDE_DIRS ${rcutils_INCLUDE_DIRS})

if(NOT RCUTILS_DISABLE_FAULT_INJECTION)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DRCUTILS_ENABLE_FAULT_INJECTION")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DRCUTILS_ENABLE_FAULT_INJECTION")
endif()

add_subdirectory(test)
endif()

Expand Down

0 comments on commit 897314f

Please sign in to comment.