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

Christophe Geuzaine cgeuzaine at ulg.ac.be
Wed May 7 13:08:26 CEST 2014


On 07 May 2014, at 11:56, Geoff Oxberry <goxberry at gmail.com> wrote:

> 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.
> 

Hi Geoff - "cmake -DOS_SPECIFIC_INSTALL=0" should do the trick.

Christophe


> Thanks,
> 
> Geoff
> 
> -- 
> Geoffrey Oxberry, Ph.D., E.I.T.
> goxberry at gmail.com
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh

-- 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science 
http://www.montefiore.ulg.ac.be/~geuzaine