Skip to content

Commit

Permalink
Add note about precompiled headers usage (fixes #35)
Browse files Browse the repository at this point in the history
  • Loading branch information
nanoant committed May 4, 2019
1 parent fa975ba commit 1a379c7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ Uses given header as precompiled header for given target.

Optionally it may share compiled header object with other target, so it is precompiled just once.

**NOTE**: While CMakePCHCompiler ensures that precompiled header is included as first compile unit for each source file, it is still recommended to keep `#include "prefix.h"` in your source code to ensure your code remains portable regardless of precompiled headers being enabled or not.

For more details how to use precompiled header with your library and/or compiler refer to their documentation i.e. GCC, Qt, etc.

**IMPORTANT** Before you submit issue report or feature request, please...
--------------------------------------------------------------------------

Expand Down

1 comment on commit 1a379c7

@drizt
Copy link
Contributor

@drizt drizt commented on 1a379c7 May 4, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.