Skip to content

Commit 197a772

Browse files
committed
GPU Standalone: Fix standalone build helper if source path is given as relative path
1 parent 41fd1ea commit 197a772

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • GPU/GPUTracking/Standalone/cmake

‎GPU/GPUTracking/Standalone/cmake/build.sh‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ if [[ -z $1 ]]; then
44
exit 1
55
fi
66
set -e
7+
SRCPATH=$(realpath $1)
78
mkdir -p standalone/build
89
pushd standalone/build
9-
cp $1/GPU/GPUTracking/Standalone/cmake/config.cmake .
10+
cp $SRCPATH/GPU/GPUTracking/Standalone/cmake/config.cmake .
1011
if [[ $GPUCA_STANDALONE_CI == 1 ]]; then
1112
cat >> config.cmake << "EOF"
1213
set(ENABLE_CUDA 1)
@@ -17,7 +18,7 @@ if [[ $GPUCA_STANDALONE_CI == 1 ]]; then
1718
set(GPUCA_CONFIG_WERROR 1)
1819
EOF
1920
fi
20-
cmake -DCMAKE_INSTALL_PREFIX=../ $1/GPU/GPUTracking/Standalone
21+
cmake -DCMAKE_INSTALL_PREFIX=../ $SRCPATH/GPU/GPUTracking/Standalone
2122
make ${JOBS+-j $JOBS} install
2223
if [[ $GPUCA_STANDALONE_CI == 1 ]]; then
2324
cat >> config.cmake << "EOF"

0 commit comments

Comments
 (0)