Skip to content

Commit

Permalink
introducing CASCADE_INSTALL_PREFIX
Browse files Browse the repository at this point in the history
  • Loading branch information
songweijia committed Apr 17, 2024
1 parent cf94be9 commit 10a7ebf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build.sh
Expand Up @@ -66,7 +66,12 @@ if [[ $1 == "Clean" ]]; then
fi

build_type=$1
install_prefix="/usr/local"
if [ -z $CASCADE_INSTALL_PREFIX ]; then
install_prefix="/usr/local"
else
install_prefix=$CASCADE_INSTALL_PREFIX
fi

cmake_defs="-DCMAKE_BUILD_TYPE=${build_type} -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_INSTALL_PREFIX=${install_prefix} -Dpybind11_DIR=`pybind11-config --cmakedir`"
build_path="build-${build_type}"

Expand Down

0 comments on commit 10a7ebf

Please sign in to comment.