[Gmsh] Any way to redefine GMSH_BIN, GMSH_LIB, GMSH_DOC, & GMSH_MAN when invoking CMake?

Geoff Oxberry goxberry at gmail.com
Wed May 7 11:56:00 CEST 2014

Some background:

I'm trying to write a formula for gmsh for the Homebrew package manager for
Mac OS X. For the most part, it's relatively straightforward, and builds
successfully. The install prefix for packages tends to be something like:

$(brew --prefix)/Cellar/${PACKAGE_NAME}/${PACKAGE_VERSION},

where $(brew --prefix) tends to return /usr/local. So I use that prefix,
and everything seems to install into /usr/local/Cellar/gmsh/2.8.4 like it's
supposed to...until the Makefile installs:

- binaries
- libraries
- documentation
- man pages

and these all install in awkward places because GMSH_BIN and GMSH_LIB are
set to "../MacOS", and GMSH_DOC and GMSH_MAN are set to "../../.." (which
causes all sorts of problems).

The question:

To fix these installation issues, what I would like to do is change the
install locations for binaries, libraries, docs, and man pages. Is it
possible to redefine their install locations relative to
CMAKE_INSTALL_PREFIX at the command line? The default locations for an Mac
OS X build interact badly with the directory structure of the package
manager I am using.



Geoffrey Oxberry, Ph.D., E.I.T.
goxberry at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20140507/61827fc4/attachment.html>