From 0d07c0650f9ebb983a6a23b4a717ea3a695248cf Mon Sep 17 00:00:00 2001 From: Evan Lojewski Date: Sat, 12 Sep 2020 10:12:57 -0600 Subject: build: Fix a packaging failure when the path has parens in it. (#103) --- build.sh | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 8e41262..e2c24bd 100755 --- a/build.sh +++ b/build.sh @@ -61,6 +61,20 @@ then fi fi +if [ ! -x "$CPACK" ] +then + CPACK=`which cpack3` + if [ ! -x "$CPACK" ] + then + CPACK=`which cpack` + if [ ! -x "$CPACK" ] + then + echo "ERROR: Unable to locate cpack." + exit -1 + fi + fi +fi + NINJA=`which ninja-build` if [ -x "$NINJA" ] then @@ -94,4 +108,5 @@ cd "$BUILD_DIR" # Generate release packages. "$CMAKE" --build . --target package -"$CMAKE" --build . --target package_source +# Work around an issue with --target package_source that fails due to ('s in the path +"$CPACK" --config ./CPackSourceConfig.cmake -- cgit v1.2.1