<table><tr><td style="">sitter added inline comments.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D7094" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>INLINE COMMENTS</strong><div><div style="margin: 6px 0 12px 0;"><div style="border: 1px solid #C7CCD9; border-radius: 3px;"><div style="padding: 0; background: #F7F7F7; border-color: #e3e4e8; border-style: solid; border-width: 0 0 1px 0; margin: 0;"><div style="color: #74777d; background: #eff2f4; padding: 6px 8px; overflow: hidden;"><a style="float: right; text-decoration: none;" href="https://phabricator.kde.org/D7094#inline-29407" rel="noreferrer">View Inline</a><span style="color: #4b4d51; font-weight: bold;">apol</span> wrote in <span style="color: #4b4d51; font-weight: bold;">ECMFindQMLModule.cmake.in:30</span></div>
<div style="margin: 8px 0; padding: 0 12px; color: #74777D;"><p style="padding: 0; margin: 8px;">Doing find_program for now. The right fix would be to change Qt to export the <tt style="background: #ebebeb; font-size: 13px;">qmlplugindump</tt> target.</p></div></div>
<div style="margin: 8px 0; padding: 0 12px;"><p style="padding: 0; margin: 8px;">You still need to do "something" if qmlplugindump isn't found. Print a <tt style="background: #ebebeb; font-size: 13px;">message(WARNING</tt> and/or <tt style="background: #ebebeb; font-size: 13px;">add_feature_info</tt> or something similar.<br />
Right now the code would mark the plugin not found but not tell the user that the reason it was not found is that the helper is missing.</p>

<p style="padding: 0; margin: 8px;">e.g. here kirigami is actually installed but qmlplugindump is not:</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);"> 10:45:09  /tmp/t/b 
$ cmake ..
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/lib/icecc/bin/gcc
-- Check for working C compiler: /usr/lib/icecc/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/lib/icecc/bin/g++
-- Check for working CXX compiler: /usr/lib/icecc/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- qmlplugindump failed for org.kde.kirigami.
-- Could NOT find org.kde.kirigami-QMLModule (missing:  org.kde.kirigami-QMLModule_FOUND) 
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/t/b

 10:45:12  /tmp/t/b 
$ cat ../CMakeLists.txt 
project(test)
cmake_minimum_required(VERSION 3.5)

find_package(ECM 1.3.0 REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH})

include(ECMQMLModules)
ecm_find_qmlmodule(org.kde.kirigami 2.1)</pre></div></div></div></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R240 Extra CMake Modules</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D7094" rel="noreferrer">https://phabricator.kde.org/D7094</a></div></div><br /><div><strong>To: </strong>apol, Build System, Frameworks, sitter<br /><strong>Cc: </strong>dfaure, aacid<br /></div>