spatial-algorithms icon indicating copy to clipboard operation
spatial-algorithms copied to clipboard

Ensure each header compiles on its own

Open springmeyer opened this issue 8 years ago • 0 comments

By ensuring each header compiles on its own, we're able to insure we are "including what we use". I noticed that libosium from @joto has nice trick for doing this: https://github.com/osmcode/libosmium/blob/28c676054064c6b75204f0981c21fb3e265c9319/CMakeLists.txt#L386-L421.

We should apply that here to catch instances where we are missing includes (and therefore depending inadvertently on includes including other includes which may not be the same per platform).

springmeyer avatar Nov 07 '17 18:11 springmeyer