Ignore:
Timestamp:
2013-01-15T16:23:47+13:00 (11 years ago)
Author:
davidb
Message:

Added function to support compiling with CMake

File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/cascade-make/trunk/lib/cascade-lib.bash

    r26627 r26720  
    231231
    232232
     233opt_run_cmake()
     234{
     235  local type=$1
     236  local package=$2
     237  local version=$3
     238  local subdir=$4
     239  local opt_target=""
     240
     241  if [ ! -z "$5" ] ; then
     242    opt_target=$5
     243  fi
     244
     245  if [ $type = "1" ] ; then
     246    ( cd $package$version/$subdir ; \
     247      make $opt_target)
     248
     249    if [ $? != 0 ] ; then
     250        echo "      Error encountered running *make $target* stage of $progname"
     251        exit 1
     252    fi
     253  fi
     254}
     255
     256
    233257run_installclean()
    234258{
Note: See TracChangeset for help on using the changeset viewer.