Skip to content

Commit

Permalink
#2174: use vtk install dir instead of build dir
Browse files Browse the repository at this point in the history
  • Loading branch information
cwschilly committed Sep 17, 2024
1 parent ef4b213 commit 7d63592
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions ci/deps/vtk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,16 @@ rm ${vtk_tar_name}

mkdir -p ${build_root}
cd ${build_root}
rm -rf ./*
cmake ${base_dir}/${vtk_name}
cmake --build . -j ${make_args}

mkdir -p build
mkdir -p install

cd build
cmake \
-DCMAKE_INSTALL_PREFIX:FILEPATH=${build_root}/install \
${base_dir}/${vtk_name}
cmake --build . --target install -j ${make_args}

cd ${base_dir}
rm -rf ${vtk_name}
rm -rf ${build_root}/build
2 changes: 1 addition & 1 deletion ci/docker/ubuntu-gnu-vtk-cpp.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ ENV LESSCHARSET=utf-8

COPY ./ci/deps/vtk.sh vtk.sh
RUN chmod +x vtk.sh && ./vtk.sh 9.3.0 /vtk-build -j4
ENV VTK_DIR=/vtk-build
ENV VTK_DIR=/vtk-build/install/lib/cmake/vtk-9.3

COPY ./ci/deps/mpich.sh mpich.sh
RUN if [ "$ubuntu" = "18.04" ]; then \
Expand Down

0 comments on commit 7d63592

Please sign in to comment.