nightstyles / alembic

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

When building alembic with a specific library path, alembic still attempts to use system-level libGLEW. #343

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Using version 1.5.0 (2013072300) of Alembic, but live source suggests the issue 
is present in current head.

In CMakeLists.txt there is a conditional for building on WINDOWS and DARWIN 
which handle the GL libs differently.  On the ELSE() case ALEMBIC_GL_LIBS is 
set and forces GLEW to the system definition whereas OpenGL and GLUT use 
FIND_PACKAGE to resolve where the libs should come from.

Adding FIND_PACKAGE( GLEW ) in the ELSE() case and referencing ${GLEW_LIBRARY} 
in the SET( ALEMBIC_GL_LIBS ..) appears to resolve the lookup problem; although 
I'm not entirely sure what is appropriate for the general solution.

Original issue reported on code.google.com by mikep...@gmail.com on 21 Jun 2014 at 1:56

Attachments: