So exactly what are you recommending I change, Nick?
What I don't understand is, why if I do
cmake .. -DILMBASE_HOME=blah
it doesn't work, and complains about ILMBASE_HOME being set but not used by the
build.
But if I do a top-level
make ILMBASE_HOME=blah
it works! And doesn't complain.
But if I look at the Makefile, I *think* all that's happening is that make is
merely passing the -DILMBASE_HOME=... to the cmake invocation.
So I'm not sure I understand this.
Troy, are you on a Unix-like system? Can you at least try using the top-level
'make' wrapper as I described? It works for me, and in fact I spent quite a bit
of time this week (coincidentally) testing against a bunch of different
versions of OpenEXR that I'd compiled, using exactly this method.
-- lg
> On Jan 22, 2016, at 5:09 PM, Nicholas Yue <[email protected]> wrote:
>
>
>
> On 22 January 2016 at 17:04, Larry Gritz <[email protected]
> <mailto:[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
> <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 <http://au.linkedin.com/in/nicholasyue>
> https://vimeo.com/channels/naiadtools <https://vimeo.com/channels/naiadtools>
> _______________________________________________
> Oiio-dev mailing list
> [email protected]
> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
--
Larry Gritz
[email protected]
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org