Merge pull request #238621 from kknives/master

librealsense: Fix bad include directory in cmake
This commit is contained in:
Nick Cao 2023-06-20 20:35:22 -06:00 committed by GitHub
commit b486b052d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,7 +78,10 @@ stdenv.mkDerivation rec {
# script does not do this, and it's questionable if intel knows it should be
# done
# ( https://github.com/IntelRealSense/meta-intel-realsense/issues/20 )
postInstall = lib.optionalString enablePython ''
postInstall = ''
substituteInPlace $out/lib/cmake/realsense2/realsense2Targets.cmake \
--replace "\''${_IMPORT_PREFIX}/include" "$dev/include"
'' + lib.optionalString enablePython ''
cp ../wrappers/python/pyrealsense2/__init__.py $out/${pythonPackages.python.sitePackages}/pyrealsense2
'';