chashion / alembic

Automatically exported from code.google.com/p/alembic
Other
0 stars 0 forks source link

Allow ability to specify explicit install location #351

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Currently alembic appends "alembic-${VERSION}" to the CMAKE_INSTALL_PREFIX, 
which forces users/studios into a particular build scheme, which may not be 
compatible with their own (for example, at Luma we use rez).

It would be great to have a way to specify the absolute install path and not 
have it altered.

The relevant code is here:

IF ( DEFINED ENV{ALEMBIC_INSTALL_PREFIX} )
  SET( CMAKE_INSTALL_PREFIX
    $ENV{ALEMBIC_INSTALL_PREFIX}/alembic-${VERSION} )
ELSE ()
  SET( ORIGINAL_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX} )
  SET( CMAKE_INSTALL_PREFIX
    ${ORIGINAL_INSTALL_PREFIX}/alembic-${VERSION} )
ENDIF ()

It'd be nice if CMAKE_INSTALL_PREFIX were honored precisely, but I can 
understand if for backward compatibility you want to add another cmake variable 
to control this.

Original issue reported on code.google.com by chad...@gmail.com on 15 Aug 2014 at 10:27

GoogleCodeExporter commented 9 years ago

Original comment by miller.lucas on 15 Aug 2014 at 10:32