Fix for rBec81feab6649: better to search for versionned libs first, else it can use your system ones instead of those built by install_deps!

This commit is contained in:
Bastien Montagne 2014-01-14 21:50:03 +01:00
parent a294d3a18f
commit 839ddfbb65

@ -103,7 +103,7 @@ FOREACH(COMPONENT ${_openexr_FIND_COMPONENTS})
FIND_LIBRARY(OPENEXR_${UPPERCOMPONENT}_LIBRARY
NAMES
${COMPONENT} ${COMPONENT}-${_openexr_libs_ver}
${COMPONENT}-${_openexr_libs_ver} ${COMPONENT}
HINTS
${_openexr_SEARCH_DIRS}
PATH_SUFFIXES