Fix CMake Error in generators/spectre/CMakeLists.txt
ClosedPublic

Authored by rkflx on Nov 2 2017, 12:09 AM.

Details

Summary

When porting from add_library to okular_add_generator, 2f9246ae42ce
missed to remove MODULE for spectre, which is already implicitly added
as can be seen here.

This causes the upcoming CMake 3.10 to print the error `Cannot find
source file`, which can be fixed by removing the superfluous MODULE.

BUG: 386176

Test Plan

No error shown anymore with CMake 3.10.0-rc4. Still works with CMake
3.5.1.

Diff Detail

Repository
R223 Okular
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
rkflx created this revision.Nov 2 2017, 12:09 AM
Restricted Application added a project: Okular. · View Herald TranscriptNov 2 2017, 12:09 AM
ngraham accepted this revision.Nov 2 2017, 12:54 AM
This revision is now accepted and ready to land.Nov 2 2017, 12:54 AM
This revision was automatically updated to reflect the committed changes.