Ticket #37276: patch-cmake-OpenCVFindOpenNI.cmake.diff

File patch-cmake-OpenCVFindOpenNI.cmake.diff, 1.4 KB (added by josephhowse@…, 12 years ago)

graphics/opencv/files/patch-cmake-OpenCVFindOpenNI.cmake.diff

  • cmake/OpenCVFindOpenNI.cmake

    old new  
    2626        find_library(OPENNI_LIBRARY "OpenNI64" PATHS $ENV{OPEN_NI_LIB64} DOC "OpenNI library")
    2727    endif()
    2828elseif(UNIX OR APPLE)
    29     find_file(OPENNI_INCLUDES "XnCppWrapper.h" PATHS "/usr/include/ni" "/usr/include/openni" DOC "OpenNI c++ interface header")
    30     find_library(OPENNI_LIBRARY "OpenNI" PATHS "/usr/lib" DOC "OpenNI library")
     29    find_file(OPENNI_INCLUDES "XnCppWrapper.h" PATHS "@@PREFIX@@/include/ni" "@@PREFIX@@/include/openni" DOC "OpenNI c++ interface header")
     30    find_library(OPENNI_LIBRARY "OpenNI" PATHS "@@PREFIX@@/lib" DOC "OpenNI library")
    3131endif()
    3232
    3333if(OPENNI_LIBRARY AND OPENNI_INCLUDES)
     
    4040            find_file(OPENNI_PRIME_SENSOR_MODULE "XnCore64.dll" PATHS "$ENV{OPEN_NI_INSTALL_PATH64}../PrimeSense/Sensor/Bin64" "$ENV{OPEN_NI_INSTALL_PATH64}../PrimeSense/SensorKinect/Bin64" DOC "Core library of PrimeSensor Modules for OpenNI")
    4141        endif()
    4242    elseif(UNIX OR APPLE)
    43         find_library(OPENNI_PRIME_SENSOR_MODULE "XnCore" PATHS "/usr/lib" DOC "Core library of PrimeSensor Modules for OpenNI")
     43        find_library(OPENNI_PRIME_SENSOR_MODULE "XnCore" PATHS "@@PREFIX@@/lib" DOC "Core library of PrimeSensor Modules for OpenNI")
    4444    endif()
    4545
    4646    if(OPENNI_PRIME_SENSOR_MODULE)