Skip to content

Commit 5466b57

Browse files
committed
Merge pull request OpenKinect#104 from dorian3d/fix/wget-cl
Do not download cl.hpp if it exists
2 parents 2d15359 + 92fc3c3 commit 5466b57

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

depends/install_mac.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ cp $LIBUSBX_SOURCE_DIR/config.sub ./
2323
make && make install
2424

2525
#get the missing cl.hpp from Khronos.org
26-
cd /System/Library/Frameworks/OpenCL.framework/Versions/A/Headers/ && sudo wget http://www.khronos.org/registry/cl/api/1.2/cl.hpp
26+
cd /System/Library/Frameworks/OpenCL.framework/Versions/A/Headers/
27+
[ -f cl.hpp ] || sudo wget http://www.khronos.org/registry/cl/api/1.2/cl.hpp
2728

2829
cd $DEPENDS_DIR

0 commit comments

Comments
 (0)