Hi!
In our project, we have true third-party dependencies (e.g. Boost, QT, googletest) and we have dependencies from other teams. We use find_package() and target_link_libraries() for both kind of dependencies.
While we want cmake to use -isystem on the true third-party dependencies, we would like to use -I for the include directories on the dependencies of our colleagues.
Is there a way to achieve this?
CMAKE_NO_SYSTEM_FROM_IMPORTED is a global boolean. So I can toggle between “use -isystem on all imported targets” and “use -I on all imported targets”. Whereas I would like something in between.
Thanks kindly in advance for any advice!