Robotics StackExchange | Archived questions

ROS precompile for C++ headers

Is there documentation (or a standard procedure) in ROS for using precompile C++ headers using CMakeLists.txt?

Not a cmake guru, but am familiar with compile speedup from using precompiled headers - especially for header dependent C++ files for libraries such as boost, eigen, etc.

Aware there are problems with precompiled headers on g++.

Asked by rosnutsbolts on 2017-01-10 15:02:55 UTC

Comments

I don't think ROS provides a standard way to do this, but the build system is cmake, so if there's a standard way to use precompiled headers in cmake, that will probably work.

Asked by ahendrix on 2017-01-10 16:07:01 UTC

Answers