On Tue, Sep 06, 2022 at 06:09:04PM -0400, Aaron M. Ucko wrote:
> Adrian Bunk <[email protected]> writes:
>
> > This makes it appear more likely that the root cause is a bug in FLTK or
> > a regression in CMake.
>
> Ah, yeah, FLTK's packaging post-processes some CMake output; it sounds
> like the relevant logic needs to be updated to work with current CMake.
> (Another option might have been to patch CMake's input, but I want to
> make some across-the-board tweaks that are best centralized modulo this
> sort of wrinkle.) I'll take a look when I get a chance.
The build log of fltk1.3 says:
...
debian/fix-fltk-targets \
debian/FLTK-Targets-head.cmake \
CMakeTmp/CMakeFiles/Export/share/fltk/FLTK-Targets.cmake \
> CMakeTmp/etc/FLTK-Targets.cmake
Can't open CMakeTmp/CMakeFiles/Export/share/fltk/FLTK-Targets.cmake: No such
file or directory at debian/fix-fltk-targets line 25, <> line 4.
debian/fix-fltk-targets \
CMakeTmp/CMakeFiles/Export/share/fltk/FLTK-Targets-none.cmake \
debian/FLTK-Targets-none-tail.cmake \
> CMakeTmp/etc/FLTK-Targets-none.cmake
Can't open CMakeTmp/CMakeFiles/Export/share/fltk/FLTK-Targets-none.cmake: No
such file or directory at debian/fix-fltk-targets line 5.
...
Paths of the input files changed:
./CMakeTmp/CMakeFiles/Export/d834f99d2561e0cf606204aa52b7071e/FLTK-Targets.cmake
./CMakeTmp/CMakeFiles/Export/d834f99d2561e0cf606204aa52b7071e/FLTK-Targets-none.cmake
The following in debian/rules work for me with current cmake:
CMakeTmp/CMakeFiles/Export/*/FLTK-Targets.cmake \
CMakeTmp/CMakeFiles/Export/*/FLTK-Targets-none.cmake \
cu
Adrian