I tried building with cmake yesterday. A few observations.
Compiling from scratch went faster than autoconf.
From INSTALL.cmake I though that
-DLYX_PACKAGE_SUFFIX=-devel
would be the equivalent of
--with-version-suffix=-devel
under autoconf. But my LyX built by cmake uses ~/.lyx2.1/ as the user
directory instead of ~/.lyx-devel/ as I expected. This might be a wrong
configuration on my part.
It was detected correctly that I was running LyX in-place, from the
out-of-source build dir. But if I start LyX using a symlink, I get a
message about setting up LYX_DIR_21x, and then a crash. OK, I did read
INSTALL.cmake and didn't expected it to work, but I didn't expect it to
crash, either.
For tex2lyx detection, the tex2lyx and lyx binaries reside in the same
directory and both have the version suffix. So, this is fairly easy to
detect in configure.py, provided that we know the bin dir.
Look for
1) lyxbindir/tex2lyx/tex2lyx (for autoconf)
2) lyxbindir/tex2lyx+suffix (for cmake)
3) tex2lyx+suffix (installed version with suffix)
4) tex2lyx (installed version)
Nevertheless, it would be good to have it consistent between autoconf
and cmake. I'm not sure whether I prefer cmake to move the tex2lyx
binary to a tex2lyx subdir, or autoconf to move all binaries to the same
bin dir. I do feel that version suffixes should be used only when
installing. Again, maybe I did a wrong configuration of cmake.
I am going to try scons today and report back.
--
Julien