On Sat, 2011-01-22 at 19:18 -0800, Chad Versace wrote: > On Sat, Jan 22, 2011 at 17:46, Ian Romanick <i...@freedesktop.org> wrote: > > What I want is a way with cmake to build files twice. The first time > > will be in the existing way. The second time will compile with > > - -DUSE_OPENGL_ES and will generate a .o file with a different name. > ... > > I don't know cmake well enough to do that, and I keep forgetting to ask > > Chad. > > I have done just that with cmake recently; that is, building an > executable twice, once using GL and again with GLES2. When Monday > arrives, I'll take a look at how to best coerce Piglit to do this.
It looks you already know a better way, but just in case, a straightforward way to do this is using out-of-source builds, one runs configures cmake with two seperate build directories (e.g., build/gl, build/gles) enabling GLES on the latter, and then its simply a matter of doing make -C build/gl make -C build/gles Jose _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev