Ticket #52328: patch-find-openexr.diff

File patch-find-openexr.diff, 821 bytes (added by mkae (Marko Käning), 8 years ago)
  • OpenCVFindOpenEXR.cmake

    old new  
    2121        SET(OPENEXR_LIBSEARCH_SUFFIXES Win32/Release Win32 Win32/Debug)
    2222    endif()
    2323else()
    24     set(OPENEXR_ROOT "")
     24    set(OPENEXR_ROOT "@PREFIX@")
    2525endif()
    2626
    2727SET(LIBRARY_PATHS
    28     /usr/lib
    29     /usr/local/lib
    30     /sw/lib
    31     /opt/local/lib
    32     "${ProgramFiles_ENV_PATH}/OpenEXR/lib/static"
     28    @PREFIX@/lib
    3329    "${OPENEXR_ROOT}/lib")
    3430
    3531FIND_PATH(OPENEXR_INCLUDE_PATH ImfRgbaFile.h
    3632    PATH_SUFFIXES OpenEXR
    3733    PATHS
    38     /usr/include
    39     /usr/local/include
    40     /sw/include
    41     /opt/local/include
    42     "${ProgramFiles_ENV_PATH}/OpenEXR/include"
     34    @PREFIX@/include
    4335    "${OPENEXR_ROOT}/include")
    4436
    4537FIND_LIBRARY(OPENEXR_HALF_LIBRARY