Environment: CMake 3.5, linux, g++ CMake uses "-isystem" on the compiler command line for the INTERFACE_INCLUDE_DIRECTORIES of imported libraries.
Unfortunately including a header via an isystem path suppresses warnings emitted from the header, such as warnings caused by expansions of macros defined in that header. Example: I have a printf-like LOG(...) macro which expands to a function marked as printf-like. The -Wformat warnings are suppressed if the containing log.h is found on isystem path. Question: is this the intended behaviour? Can I force the -I flag somehow for my library? (I'm aware of CMAKE_INCLUDE_SYSTEM_FLAG_CXX but I don't want to modify all the client projects that uses my library.) Or is it bug? Thanks, Tamas
-- 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