<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div></div><div>Ok, I've got it.</div><div>If anyone is interested, here is my configuration:</div><div><pre><font face="UICTFontTextStyleBody"><span style="white-space: normal; background-color: rgba(255, 255, 255, 0);">find_program(iwyu_path NAMES include-what-you-use iwyu PATHS ${CMAKE_SOURCE_DIR}/tools/include-what-you-use/${iwyu_os}/bin)
if(NOT iwyu_path)
    message(STATUS "Program include-what-you-use: Not found")
else()
    message(STATUS "Program include-what-you-use: Found")
    set(CMAKE_CXX_INCLUDE_WHAT_YOU_USE ${iwyu_path})
endif()

find_program(clang_tidy NAMES clang-tidy clang-tidy-3.8)
if(NOT clang_tidy)
    message(STATUS "Program clang-tidy: Not found")
else()
    message(STATUS "Program clang-tidy: Found")
    set(CMAKE_CXX_CLANG_TIDY "${clang_tidy};-checks=-*,clang-analyzer-*,-clang-analyzer-alpha*,performance-*,cppcoreguidelines-*,cert-*,modernize-*")
endif()
</span></font>
</pre><pre><font face="UICTFontTextStyleBody"><span style="white-space: normal; background-color: rgba(255, 255, 255, 0);"><br></span></font></pre><pre><font face="UICTFontTextStyleBody"><span style="white-space: normal; background-color: rgba(255, 255, 255, 0);">Regards</span></font></pre><pre><span style="white-space: normal; background-color: rgba(255, 255, 255, 0); font-family: UICTFontTextStyleBody;">Roman</span></pre></div><div><br>Am 26.10.2016 um 11:50 schrieb Daniel Pfeifer <<a href="mailto:daniel@pfeifer-mail.de">daniel@pfeifer-mail.de</a>>:<br><br></div><blockquote type="cite"><div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Oct 26, 2016 at 11:27 AM, Roman Wüger <span dir="ltr"><<a href="mailto:roman.wueger@gmx.at" target="_blank">roman.wueger@gmx.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I set CMAKE_CXX_INCLUDE_WHAT_YOU_USE and CMAKE_CXX_CLANG_TIDY. Both work as expected with CMake 3.6.2 under linux. Under Mac OS with the same sources and the same CMake version doesn't produce any output.<br>
<br>
On Linux clang 3.8 is used, on Mac OS it is AppleClang 7.3.0 with clang-tidy installed from homebrew.<br>
<br>
Any hints?<br></blockquote><div><br></div><div>When you run "make VERBOSE=1" and look at what is executed, do you see any "cmake --iwyu" invocations?</div></div></div></div>
</div></blockquote></body></html>