<table><tr><td style="">rkflx created this revision.<br />rkflx added a reviewer: Okular.<br />Restricted Application added a project: Okular.
</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/D8612" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>When porting from <tt style="background: #ebebeb; font-size: 13px;">add_library</tt> to <tt style="background: #ebebeb; font-size: 13px;">okular_add_generator</tt>, <a href="https://phabricator.kde.org/R223:2f9246ae42ce6276002641ac02d9c6b880bcf7a3" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;" rel="noreferrer">2f9246ae42ce</a><br />
missed to remove <tt style="background: #ebebeb; font-size: 13px;">MODULE</tt> for spectre, which is already implicitly added<br />
as can be seen <a href="https://phabricator.kde.org/source/kcoreaddons/browse/master/KF5CoreAddonsMacros.cmake;83623a46c9862ee37535de93427dec0b0c55e24d$139" class="remarkup-link" target="_blank" rel="noreferrer">here</a>.</p>

<p>This causes the upcoming CMake 3.10 to print the error `Cannot find<br />
source file`, which can be fixed by removing the superfluous <tt style="background: #ebebeb; font-size: 13px;">MODULE</tt>.</p>

<p>BUG: 386176</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>No error shown anymore with CMake 3.10.0-rc4. Still works with CMake<br />
3.5.1.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R223 Okular</div></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D8612" rel="noreferrer">https://phabricator.kde.org/D8612</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>generators/spectre/CMakeLists.txt</div></div></div><br /><div><strong>To: </strong>rkflx, Okular<br /><strong>Cc: </strong>aacid<br /></div>