On 29.01.24 10:38 PM, Eric Smith wrote:
> On Mon, Jan 29, 2024, 02:32 Sandro Mani <manisandro(a)gmail.com> wrote:
>
> For mingw, the most common approach is
>
> %build
> %mingw_cmake
> %mingw_make_build
>
> %install
> %mingw_make_install
> # Don't forget this one
> |%mingw_debug_install_post|
>
> Thank you, but as I said in my request, that is exactly what I already
> tried. It worked fine for pugixml and zipios, but failed for fmt.
In the fmt.spec you posted, I see
%mingw_cmake -G Ninja [...]
this means that you are generating ninja build scripts, not Makefiles.
If you want to use ninja, you should call
%mingw_ninja
after %mingw_cmake -G Ninja.
To generate Makefiles, call
%mingw_cmake
without the -G Ninja, and after this
%mingw_make_build
Sandro