On 04/07/2016 10:03 AM, Tamás Kenéz wrote:
> CMake uses "-isystem" on the compiler command line for the
> INTERFACE_INCLUDE_DIRECTORIES of imported libraries.
> 
> Question: is this the intended behaviour?

Yes.  See discussion here:

* http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/7533

and implementation here:

* Always consider includes from IMPORTED targets to be SYSTEM.
  https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=a63fcbcb

> Can I force the -I flag somehow for my library?

Look at these:

* https://cmake.org/cmake/help/v3.5/variable/CMAKE_NO_SYSTEM_FROM_IMPORTED.html
* https://cmake.org/cmake/help/v3.5/prop_tgt/NO_SYSTEM_FROM_IMPORTED.html

-Brad

-- 

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:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to