Closed ahoarau closed 6 years ago
Just need to turn off the CMAKE_AUTOMOC_COMPILER_PREDEFINES. Ref : https://github.com/ros-visualization/rviz/issues/1261
CMAKE_AUTOMOC_COMPILER_PREDEFINES
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4bb906b..e6cd5b0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -55,6 +55,7 @@ endif() ## etc because they can conflict with boost signals, so define QT_NO_KEYWORDS here. set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTOMOC_COMPILER_PREDEFINES OFF) add_definitions(-DQT_NO_KEYWORDS) catkin_package(
Just need to turn off the
CMAKE_AUTOMOC_COMPILER_PREDEFINES
. Ref : https://github.com/ros-visualization/rviz/issues/1261