summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Kientzle <kientzle@acm.org>2017-02-25 11:18:26 -0800
committerTim Kientzle <kientzle@acm.org>2017-02-25 11:18:26 -0800
commit22aab5ffd1ac8f1ad3bb0d4f7d2a0020fb93745a (patch)
treedc13f87912b9ea7f602b0d54a3e083134df4d9a3
parent429b71b92af52d1a65542d7683d713f960d29f54 (diff)
downloadlibarchive-22aab5ffd1ac8f1ad3bb0d4f7d2a0020fb93745a.tar.gz
CMake builds now default to "Release" in releases
-rwxr-xr-xbuild/autogen.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/build/autogen.sh b/build/autogen.sh
index 64767b6e..e720e9b7 100755
--- a/build/autogen.sh
+++ b/build/autogen.sh
@@ -51,6 +51,7 @@ perl -p -i -e 's/(m4_define\(\[LIBARCHIVE_VERSION_N\]),.*\)/$1,['"$VN"'])/' conf
# Remove developer CFLAGS if a release build is being made
if [ -n "${MAKE_LIBARCHIVE_RELEASE}" ]; then
perl -p -i -e "s/^(DEV_CFLAGS.*)/# \$1/" Makefile.am
+ perl -p -i -e 's/CMAKE_BUILD_TYPE "[A-Za-z]*"/CMAKE_BUILD_TYPE "Release"/' CMakeLists.txt
fi
set -xe