mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-02-23 13:31:31 -05:00
test for different CL and GL paths
This commit is contained in:
parent
53cd390aa4
commit
b1dbed83b2
@ -23,14 +23,28 @@ if [[ ! -e $linkpath && -e $targetpath ]]; then
|
||||
ln -s "$targetpath" "$linkpath"
|
||||
fi
|
||||
|
||||
targetpath=""
|
||||
|
||||
if [ -d /usr/include/*/GL ]; then
|
||||
targetpath=$(ls -d1 /usr/include/*/GL | head -n 1)
|
||||
elif [ -d /usr/include/GL ]; then
|
||||
targetpath="/usr/include/GL"
|
||||
fi
|
||||
|
||||
linkpath="$LOCAL_INCLUDE_DIR/GL"
|
||||
|
||||
if [[ ! -e $linkpath && -e $targetpath ]]; then
|
||||
ln -s "$targetpath" "$linkpath"
|
||||
fi
|
||||
|
||||
targetpath=""
|
||||
|
||||
if [ -d /usr/include/*/CL ]; then
|
||||
targetpath=$(ls -d1 /usr/include/*/CL | head -n 1)
|
||||
elif [ -d /usr/include/CL ]; then
|
||||
targetpath="/usr/include/CL"
|
||||
fi
|
||||
|
||||
linkpath="$LOCAL_INCLUDE_DIR/CL"
|
||||
|
||||
if [[ ! -e $linkpath && -e $targetpath ]]; then
|
||||
|
Loading…
Reference in New Issue
Block a user