Skip to content

Commit

Permalink
Trying to fix geometry central install
Browse files Browse the repository at this point in the history
  • Loading branch information
akenmorris committed Oct 8, 2022
1 parent 887e892 commit 115c203
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions build_dependencies.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

#set -v #verbose execution for debugging
set -x #tracing execution for debugging (echos all commands from script)
#set -x #tracing execution for debugging (echos all commands from script)

# defaults
BUILD_CLEAN=0
Expand Down Expand Up @@ -292,15 +292,19 @@ build_geometry_central()
if [[ $OSTYPE == "msys" ]]; then
cmake -DCMAKE_CXX_FLAGS="-FS" -DCMAKE_C_FLAGS="-FS" -DCMAKE_INSTALL_PREFIX="${INSTALL_DIR}" ..
cmake --build . --config ${BUILD_TYPE} --parallel || exit 1
# no make install, so we do this manually
cd ..
cp -a include/geometrycentral ${INSTALL_DIR}/include
cp build/src/Release/geometry-central.lib ${INSTALL_DIR}/lib
else
cmake -DCMAKE_CXX_FLAGS="$FLAGS" -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} -DCMAKE_BUILD_TYPE=${BUILD_TYPE} ..
cmake -DCMAKE_CXX_FLAGS="-fPIC $FLAGS" -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} -DCMAKE_BUILD_TYPE=${BUILD_TYPE} ..
make -j${NUM_PROCS}
# no make install, so we do this manually
cd ..
cp -a include/geometrycentral ${INSTALL_DIR}/include
cp build/src/*geom* ${INSTALL_DIR}/lib
fi

# no make install, so we do this manually
cd ..
cp -a include/geometrycentral ${INSTALL_DIR}/include
cp build/src/*geom* ${INSTALL_DIR}/lib

GEOMETRY_CENTRAL_DIR=${INSTALL_DIR}/geometry-central
}
Expand Down

0 comments on commit 115c203

Please sign in to comment.