PickNikRobotics / rviz_visual_tools

C++ API wrapper for displaying shapes and meshes in Rviz
772 stars 243 forks source link

Add ccache support #87

Closed ahoarau closed 6 years ago

ahoarau commented 6 years ago

Just need to turn off the CMAKE_AUTOMOC_COMPILER_PREDEFINES. Ref : https://github.com/ros-visualization/rviz/issues/1261

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(