- - |
- git clone --depth 1 -b 1.6.7 https://github.com/memcached/memcached
- cd memcached
- ./autogen.sh
- CFLAGS="-O2 -pipe" ./configure \
- --prefix=/opt \
- --disable-coverage \
- --disable-docs \
- --disable-dependency-tracking \
- --enable-sasl \
- --enable-sasl-pwdb \
- ;
- make -j2
- make install
- cd ..
+ - |
+ if test $CMAKE_BUILD_TYPE == Debug
+ then
+ git clone --depth 1 -b 1.6.7 https://github.com/memcached/memcached
+ cd memcached
+ ./autogen.sh
+ CFLAGS="-O2 -pipe" ./configure \
+ --prefix=/opt \
+ --disable-coverage \
+ --disable-docs \
+ --disable-dependency-tracking \
+ --enable-sasl \
+ --enable-sasl-pwdb \
+ ;
+ make -j2
+ make install
+ cd ..
+ fi