[vlc-devel] [PATCH v3] contrib: support CMAKE_GENERATOR other than makefile

Alexandre Janniaux ajanni at videolabs.io
Wed Nov 4 20:12:15 CET 2020


Hi
On Thu, Nov 05, 2020 at 01:35:51AM +0800, Zhao Zhili wrote:
>
>
> > On Nov 5, 2020, at 12:57 AM, Alexandre Janniaux <ajanni at videolabs.io> wrote:
> >
> > Hi,
> >
> > On Thu, Nov 05, 2020 at 12:48:07AM +0800, Zhao Zhili wrote:
> >>
> >>
> >>> On Nov 5, 2020, at 12:33 AM, Alexandre Janniaux <ajanni at videolabs.io> wrote:
> >>>
> >>> Hi,
> >>>
> >>> LGTM, but why is the export CMAKE_GENERATOR needed in the
> >>> case of msys?
> >>
> >> commit d7fd6561bed169882b33e15a86aa7cef849a950e
> >> Author: Steve Lhomme <robux4 at videolabs.io>
> >> Date:   Wed Oct 26 17:35:05 2016 +0200
> >>
> >>    contribs: fix cmake target on Windows
> >>
> >>    On Windows cmake build for a Visual Studio target if it's installed, no matter
> >>    what the target we want to build. Reverting to MSys makefiles allow normal
> >>    autotools builds to be used
> >>
> >>    Signed-off-by: RĂ©mi Denis-Courmont <remi at remlab.net>
> >>
> >> We can specify a default CMAKE_GENERATOR for other platforms, but I'm not
> >> planning to do it in this patch.
> >
> > I meant, I know why it's defined in the makefile, but is there a
> > reason why it needs to be exported afterwards?
>
> If it doesn't be exported, then we should define
>
> CMAKE := CMAKE_GENERATOR=$(CMAKE_GENERATOR) cmake ...
>
> It's cumbersome, and weird since CMAKE_GENERATOR is not defined for other
> platform.
>
> What's you suggestion?

Ah yes right! LGTM then!

> >
> > Regards,
> > --
> > Alexandre Janniaux
> > Videolabs
> > _______________________________________________
> > vlc-devel mailing list
> > To unsubscribe or modify your subscription options:
> > https://mailman.videolan.org/listinfo/vlc-devel <https://mailman.videolan.org/listinfo/vlc-devel>

> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel


More information about the vlc-devel mailing list