Use cmake over configure by default.

This commit is contained in:
Christoph Niethammer 2019-09-25 23:03:33 +00:00
parent effde28df4
commit b1ac6245d0

View file

@ -68,15 +68,15 @@ sit_prepare() {
src_configure() { src_configure() {
if [ -x ${SRCDIR}/configure ] ; then if [ -f ${SRCDIR}/CMakeLists.txt ] ; then
#sit_info "Running cmake"
cmake -DCMAKE_INSTALL_PREFIX=$PREFIX $CMAKE_OPTS ${SRCDIR}
elif [ -x ${SRCDIR}/configure ] ; then
#sit_info "Runnning configure" #sit_info "Runnning configure"
${SRCDIR}/configure --prefix=$PREFIX $CONFIGURE_OPTS ${SRCDIR}/configure --prefix=$PREFIX $CONFIGURE_OPTS
if [ ! -z $LOGDIR -a -f config.log ] ; then if [ ! -z $LOGDIR -a -f config.log ] ; then
cp config.log $LOGDIR cp config.log $LOGDIR
fi fi
elif [ -f ${SRCDIR}/CMakeLists.txt ] ; then
#sit_info "Running cmake"
cmake -DCMAKE_INSTALL_PREFIX=$PREFIX $CMAKE_OPTS ${SRCDIR}
fi fi
} }
sit_configure() { sit_configure() {