cereal icon indicating copy to clipboard operation
cereal copied to clipboard

Mark target_include_directories as SYSTEM when cereal is not standalone

Open andrewkcorcoran opened this issue 2 years ago • 0 comments

When cereal is included in another CMake project it should mark its include directories as SYSTEM. This prevents compiler errors in cereal if the parent project has more restrictive compiler warnings etc.

See GSL for an example implementation https://github.com/microsoft/GSL/blob/main/CMakeLists.txt#L26 https://github.com/microsoft/GSL/blob/main/include/CMakeLists.txt#L16

andrewkcorcoran avatar Jan 10 '22 07:01 andrewkcorcoran