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 if I make a trivial proj

Re: [CMake] target_include_directories and system headers

2018-06-27 Thread Nils Gladitz
On Thu, Jun 28, 2018 at 7:12 AM Jim Lloyd wrote: > [...] > But if I make a trivial project that 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

[CMake] target_include_directories and system headers

2018-06-27 Thread Jim Lloyd
I am cross compiling to ARM using the g++ 7.2 compilers provided with the Xilinx SDK. This compiler was built using old assumptions about system headers being pure C, such that when compiled from a .cpp source, the header is wrapped in an `extern "C" {}`. This causes true C++ headers to fail when