Skip to content

Commit 36c6b9a

Browse files
committed
cmake search path update
1 parent 7a14f3e commit 36c6b9a

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ jobs:
115115
- name: install pylon
116116
run: |
117117
Start-Process .\pylon-installer\Basler-pylon-${{ matrix.pylon_sdk }}.exe -Wait -ArgumentList '/quiet /install=SDKs;Cpp_Runtime;CamEmu_Support'
118+
echo $env:PYLON_DEV_DIR
119+
echo $env:Path
118120
119121
- name: install meson
120122
run: |
@@ -134,7 +136,8 @@ jobs:
134136
- name: compile
135137
run: |
136138
# access to pkg-config
137-
$env:CMAKE_PREFIX_PATH = $env:PYLON_DEV_DIR + "\CMake\pylon\"
139+
$env:PYLON_INSTALL_DIR = (Get-ItemProperty -Path "HKLM:\SOFTWARE\Basler\pylon" -Name installationfolder).installationfolder
140+
$env:CMAKE_PREFIX_PATH = $env:PYLON_INSTALL_DIR + "\Development\CMake\pylon\"
138141
139142
meson setup build --prefix="$env:GSTREAMER_1_0_ROOT_MSVC_X86_64"
140143
ninja -C build
@@ -149,6 +152,8 @@ jobs:
149152
- name: test
150153
run: |
151154
$env:PYLON_CAMEMU="1"
155+
$env:PYLON_INSTALL_DIR = (Get-ItemProperty -Path "HKLM:\SOFTWARE\Basler\pylon" -Name installationfolder).installationfolder
156+
$env:Path = $env:PYLON_INSTALL_DIR + "\Runtime\x64\;" + $env:Path
152157
gst-inspect-1.0.exe pylonsrc
153158
gst-launch-1.0.exe pylonsrc num-buffers=10 ! fakesink
154159

0 commit comments

Comments
 (0)