Skip to content

Commit

Permalink
fix rplidar build in clang
Browse files Browse the repository at this point in the history
  • Loading branch information
jlblancoc committed Aug 25, 2020
1 parent 877ee82 commit 0370a70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions 3rdparty/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ if(CMAKE_MRPT_HAS_ROBOPEAK_LIDAR)
if(MSVC)
target_compile_options(mrpt_rplidar PRIVATE /DWIN64)
endif()
if (MRPT_COMPILER_IS_CLANG)
target_compile_options(mrpt_rplidar PRIVATE -Wno-c++11-narrowing)
endif()

# Embedded version:
target_include_directories(mrpt_rplidar SYSTEM PUBLIC
Expand Down
2 changes: 1 addition & 1 deletion 3rdparty/rplidar_sdk

0 comments on commit 0370a70

Please sign in to comment.