Skip to content

Commit

Permalink
fix case where PYLON_ROOT is defined to wrong location
Browse files Browse the repository at this point in the history
  • Loading branch information
thiesmoeller committed May 10, 2023
1 parent 73138bd commit 1e70e48
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gst-libs/gst/pylon/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
# import PYLON_ROOT environment into meson
pylon_path = run_command(python3, '-c', 'import os; print(os.environ.get("PYLON_ROOT","PYLON_ROOT_NOT_SET"))', check: false).stdout().strip()

if target_machine.system() == 'linux' and pylon_path == 'PYLON_ROOT_NOT_SET'
fs = import('fs')

if target_machine.system() == 'linux' and (pylon_path == 'PYLON_ROOT_NOT_SET' or not fs.exists(pylon_path / 'include/pylon'))
# PYLON_ROOT has to be set
error('PYLON_ROOT has to be set to location of pylon install e.g. /opt/pylon')
endif
Expand Down

0 comments on commit 1e70e48

Please sign in to comment.