PointCloudLibrary/pcl

[cmake] Adding support for PCH and Unity builds (using Cotire/CMake 3.16)

オープン

#649 opened on 2014/04/19

 (13 件のコメント) (0 件のリアクション) (0 人の担当者)C++ (4,506 件のフォーク)batch import
help wantedkind: todomodule: cmakeskill: cmake

Repository metrics

Stars
 (9,023 個のスター)
PR merge metrics
 (平均マージ 8d 7h) (30d で 3 merged PRs)

説明

Have a look at https://github.com/sakra/cotire, it can speed up the build of a CMake project with low effort (by using precompiled headers).

When compiling an example like the extract_indices tutorial, precompiled headers brought down my compile time from 6s to 1.8.

For this example, with g++ -H I found that it includes over 3900 header files. A precompiled header reduces that to 1.

Note that cotire doesn't seem to be able to share precompiled headers across files so far, so it might not be able to help when doing just a single full build once, but it seems like it can dramatically improve build speeds when developing.

The speedup [doesn't seem to work with clang] right now though.

コントリビューターガイド