Re: [CMake] target_include_directories and system headers

2018-06-28 Thread Jim Lloyd
Thank you Nils, that is exactly the information I needed. Simply setting `set(CMAKE_NO_SYSTEM_FROM_IMPORTED ON)` achieves the workaround I wanted. On Wed, Jun 27, 2018 at 11:03 PM, Nils Gladitz wrote: > On Thu, Jun 28, 2018 at 7:12 AM Jim Lloyd wrote: > >> [...] >> But i

[CMake] target_include_directories and system headers

2018-06-27 Thread Jim Lloyd
t simply includes yaml-cpp as a dependency, the generated compile commands use `-isystem` to include the yaml-cpp headers. Is this a bug in CMake? Also, is there any way I may be able to work around this problem with CMake 3.10? I would be happy to globally force the use of `-I` for all include