On 22 January 2016 at 17:04, Larry Gritz <[email protected]> wrote:
> Hmmm... I can make it work from the 'make' wrapper, but not from CMake > directly. I'm not sure why that's the case, but I'll look into it. > I suspect the find_library() call in FindIlmBase.cmake did not exclude the system path in it's library search see https://cmake.org/cmake/help/v2.8.12/cmake.html#command:find_library # Macro to search for the given library and adds the cached # variable names to the specified list macro (PREFIX_FIND_LIB prefix libname libpath_var liblist_var cachelist_var) string (TOUPPER ${prefix}_${libname} tmp_prefix) # Handle new library names for OpenEXR 2.1 build via cmake string(REPLACE "." "_" _ILMBASE_VERSION ${ILMBASE_VERSION}) string(SUBSTRING ${_ILMBASE_VERSION} 0 3 _ILMBASE_VERSION ) find_library(${tmp_prefix}_LIBRARY_RELEASE NAMES ${libname} ${libname}-${_ILMBASE_VERSION} HINTS ${${libpath_var}} PATH_SUFFIXES lib ${ILMBASE_FIND_OPTIONS} ) find_library(${tmp_prefix}_LIBRARY_DEBUG NAMES ${libname}d ${libname}_d ${libname}debug ${libname}_debug HINTS ${${libpath_var}} PATH_SUFFIXES lib ${ILMBASE_FIND_OPTIONS} ) Cheers -- Nicholas Yue Graphics - Arnold, Alembic, RenderMan, OpenGL, HDF5 Custom Dev - C++ porting, OSX, Linux, Windows http://au.linkedin.com/in/nicholasyue https://vimeo.com/channels/naiadtools
_______________________________________________ Oiio-dev mailing list [email protected] http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
