Skip to content

Commit

Permalink
Check that build-cmake script is run from top-level dir
Browse files Browse the repository at this point in the history
Signed-off-by: Gary Oberbrunner <[email protected]>
  • Loading branch information
garyo committed May 19, 2024
1 parent b772313 commit d222f1b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/build-cmake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,14 @@ else
exit 1
fi

if [[ ! -f ./conanfile.py ]]; then
echo "***"
echo "*** ERROR: please run this script from the top level dir, where conanfile.py and readme.md are."
echo "***"
usage
exit 1
fi

# Install dependencies, set up build dir, and generate build files.
echo === Running conan to install dependencies
[[ $USE_OPENCL ]] && conan_opts="$conan_opts -o use_opencl=True"
Expand Down

0 comments on commit d222f1b

Please sign in to comment.