cmake: added FindOpenJPEG module.
[blender.git] / build_files / cmake / Modules / FindOpenEXR.cmake
index 9a1169733481662678e4ae3e99358786ca60c1ac..4dc2d5d31de2428f89734b2431c04c5e217b809d 100644 (file)
@@ -63,7 +63,8 @@ SET(_openexr_LIBRARIES)
 FOREACH(COMPONENT ${_openexr_FIND_COMPONENTS})
   STRING(TOUPPER ${COMPONENT} UPPERCOMPONENT)
 
-  FIND_LIBRARY(OPENEXR_${UPPERCOMPONENT}_LIBRARY NAMES ${COMPONENT}
+  FIND_LIBRARY(OPENEXR_${UPPERCOMPONENT}_LIBRARY
+      NAMES ${COMPONENT}
       HINTS ${_openexr_SEARCH_DIRS}
       PATH_SUFFIXES lib64 lib
       )
@@ -79,7 +80,7 @@ FIND_PACKAGE_HANDLE_STANDARD_ARGS(OpenEXR  DEFAULT_MSG
 IF(OPENEXR_FOUND)
   SET(OPENEXR_LIBRARIES ${_openexr_LIBRARIES})
   SET(OPENEXR_INCLUDE_DIRS ${OPENEXR_INCLUDE_DIR})
-ENDIF(OPENEXR_FOUND)
+ENDIF()
 
 MARK_AS_ADVANCED(OPENEXR_INCLUDE_DIR)
 FOREACH(COMPONENT ${_openexr_FIND_COMPONENTS})