Use cmake over configure by default.
This commit is contained in:
parent
effde28df4
commit
b1ac6245d0
1 changed files with 4 additions and 4 deletions
|
@ -68,15 +68,15 @@ sit_prepare() {
|
|||
|
||||
|
||||
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"
|
||||
${SRCDIR}/configure --prefix=$PREFIX $CONFIGURE_OPTS
|
||||
if [ ! -z $LOGDIR -a -f config.log ] ; then
|
||||
cp config.log $LOGDIR
|
||||
fi
|
||||
elif [ -f ${SRCDIR}/CMakeLists.txt ] ; then
|
||||
#sit_info "Running cmake"
|
||||
cmake -DCMAKE_INSTALL_PREFIX=$PREFIX $CMAKE_OPTS ${SRCDIR}
|
||||
fi
|
||||
}
|
||||
sit_configure() {
|
||||
|
|
Loading…
Reference in a new issue