include some extra search paths for cmake openexr
authorCampbell Barton <ideasman42@gmail.com>
Thu, 16 Jun 2011 02:55:26 +0000 (02:55 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 16 Jun 2011 02:55:26 +0000 (02:55 +0000)
build_files/cmake/Modules/FindOpenEXR.cmake

index a445a90669696babfb9098c5dfd1f63587c78ec5..9a1169733481662678e4ae3e99358786ca60c1ac 100644 (file)
@@ -1,4 +1,4 @@
-# - Find OpenEXR library (copied from FindTIFF.cmake, v 2.8.5)
+# - Find OpenEXR library
 # Find the native OpenEXR includes and library
 # This module defines
 #  OPENEXR_INCLUDE_DIRS, where to find ImfXdr.h, etc. Set when
@@ -47,7 +47,9 @@ SET(_openexr_FIND_COMPONENTS
 SET(_openexr_SEARCH_DIRS
   ${OPENEXR_ROOT_DIR}
   /usr/local
-  /opt/csw
+  /sw # Fink
+  /opt/local # DarwinPorts
+  /opt/csw # Blastwave
 )
 
 FIND_PATH(OPENEXR_INCLUDE_DIR ImfXdr.h
@@ -63,7 +65,7 @@ FOREACH(COMPONENT ${_openexr_FIND_COMPONENTS})
 
   FIND_LIBRARY(OPENEXR_${UPPERCOMPONENT}_LIBRARY NAMES ${COMPONENT}
       HINTS ${_openexr_SEARCH_DIRS}
-      PATH_SUFFIXES lib
+      PATH_SUFFIXES lib64 lib
       )
   LIST(APPEND _openexr_LIBRARIES "${OPENEXR_${UPPERCOMPONENT}_LIBRARY}")
 ENDFOREACH()