-
-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create ros-noetic-rviz-plugin-tutorials.patch
- Loading branch information
1 parent
1e7f7ed
commit 75c97ce
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
diff --git a/rviz_plugin_tutorials/CMakeLists.txt b/rviz_plugin_tutorials/CMakeLists.txt | ||
index 01ff2738..1b4b4079 100644 | ||
--- a/rviz_plugin_tutorials/CMakeLists.txt | ||
+++ b/rviz_plugin_tutorials/CMakeLists.txt | ||
@@ -10,6 +10,18 @@ catkin_package() | ||
include_directories(${catkin_INCLUDE_DIRS}) | ||
link_directories(${catkin_LIBRARY_DIRS}) | ||
|
||
+if(${CMAKE_C_COMPILER_ID} STREQUAL "Clang" AND ${CMAKE_C_COMPILER_VERSION} VERSION_GREATER_EQUAL "11") | ||
+ # newer Clang chokes on the idiomatic way to use CF_ENUM; e.g. like this: | ||
+ # typedef CF_ENUM(int, MyEnum) { | ||
+ # MY_ENUM_THING, | ||
+ # MY_ENUM_OTHER_THING, | ||
+ # # etc... | ||
+ # } | ||
+ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-elaborated-enum-base -Wno-undef-prefix") | ||
+ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-elaborated-enum-base -Wno-undef-prefix") | ||
+ SET(CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} -Wno-undef-prefix") | ||
+endif() | ||
+ | ||
## This setting causes Qt's "MOC" generation to happen automatically. | ||
set(CMAKE_AUTOMOC ON) | ||
|