Show
Ignore:
Timestamp:
15.01.2013 16:23:47 (7 years ago)
Author:
davidb
Message:

Added function to support compiling with CMake

Files:
1 modified

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{