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 <nilsglad...@gmail.com> wrote: > On Thu, Jun 28, 2018 at 7:12 AM Jim Lloyd <jim.ll...@etagen.com> 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 around this problem with >> CMake 3.10? I would be happy to globally force the use of `-I` for all >> include directories. >> > > I think the question and a potential work around are covered by > https://cmake.org/cmake/help/latest/manual/cmake- > buildsystem.7.html#include-directories-and-usage-requirements > Specifically the paragraph close to the end starting with "When the > INTERFACE_INCLUDE_DIRECTORIES of an imported target...". > > Basically include directories inherited from imported targets are > implicitly "SYSTEM" by default. > > Nils >
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake