Skip to content

Commit 35f5df8

Browse files
committed
Enable ITK_USE_BUILD_DIR
Skip installed ITK to save disc space. This is an alternative to adding a rm step during the build.
1 parent a312d02 commit 35f5df8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

configure

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,25 +45,25 @@ mkdir -p SITK
4545
cd SimpleITK &&
4646
git checkout ${SITKTAG} ) || exit 1
4747

48+
SITK_SRC=$(pwd)/SimpleITK
49+
4850
mkdir -p Build &&
49-
cd Build &&
50-
cmake \
51+
cd Build &&
52+
cmake \
5153
-DWRAP_DEFAULT=OFF\
5254
-DWRAP_R=ON \
5355
-DSimpleITK_BUILD_DISTRIBUTE=ON \
5456
-DBUILD_EXAMPLES=OFF \
5557
-DBUILD_TESTING=OFF \
5658
-DCMAKE_BUILD_TYPE=MinSizeRel \
57-
../SimpleITK/SuperBuild/ ||
59+
-DITK_USE_BUILD_DIR:BOOL=ON \
60+
${SITK_SRC}/SuperBuild/ ||
5861
exit 1
5962

6063
echo "Parallel build using -j${MAKEJ}"
61-
make -j${MAKEJ} ITK &&
62-
ls -la . &&
64+
make -j${MAKEJ} && \
6365
rm -rf ITK-build &&
64-
du -d 1 . &&
65-
make -j${MAKEJ} &&
6666
# Use R to do the move to avoid system specific issues.
6767
${RCALL} -f ${PKGBASED}/sitkmove.R --args SimpleITK-build/Wrapping/R/Packaging/SimpleITK/ ${PKGBASED} ||
6868
exit 1
69-
)
69+
) || exit 1

0 commit comments

Comments
 (0)