[mojosetup] CMake curses stuff [diff attached]

Gary Briggs chunky at icculus.org
Mon Mar 1 12:00:36 EST 2010

On Sun, Feb 28, 2010 at 11:50:02PM -0800, Ryan C. Gordon wrote:
> >So I patched FindCurses.cmake and put it into a cmakemodules subdir of
> >mojosetup, and moved the path appropriately.
> I just pushed these changes to my repository. Please sync up and verify 
> it still works for you.

Works fine for me:
chunky at mills:~/src/mojosetup/build$ ldd mojosetup 
	linux-vdso.so.1 =>  (0x00007fffcd104000)
	libncursesw.so.5 => /lib/libncursesw.so.5 (0x00007ff26f7b7000)
	libformw.so.5 => /usr/lib/libformw.so.5 (0x00007ff26f5a7000)
	libpthread.so.0 => /lib/libpthread.so.0 (0x00007ff26f38b000)
	libz.so.1 => /lib/libz.so.1 (0x00007ff26f173000)
	libdl.so.2 => /lib/libdl.so.2 (0x00007ff26ef6f000)
	libm.so.6 => /lib/libm.so.6 (0x00007ff26ecea000)
	libc.so.6 => /lib/libc.so.6 (0x00007ff26e978000)
	/lib64/ld-linux-x86-64.so.2 (0x00007ff26fa00000)
chunky at mills:~/src/mojosetup/build$ 

# !!! FIXME: correct this to new policy and bump minimum cmake requirement.

Yeah, that'd be nice, huh?
Seriously, though, let me know when you figure out how to get the
escaping so that it works with XCode *and* unix makefiles at the same

In the meantime, what I've done for my own project is have it drop a
config.h-style thing:
Grep for CONFIGURE_FILE here:
A better FIXME might be to "move all string macros into mojoconfig.h".
That way you don't have to bump the cmake requirement

# !!! FIXME: ditch this when Gary's curses patches go into a formal CMake
# !!! FIXME:  release, and just bump the minimum required version to it.

I posted to the mailing list, they asked me to submit a bug. So if you
need to keep track of this:

Have fun,
Gary (-;

More information about the mojosetup mailing list