Changeset 2766


Ignore:
Timestamp:
Mar 4, 2013 8:57:20 AM (7 years ago)
Author:
bradbell
Message:

Extract run_cmake.sh from check_all.sh so it can be run as a separate command.

Location:
trunk/bin
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/check_all.sh

    r2762 r2766  
    4646}
    4747# ---------------------------------------------------------------------------
    48 cmake_args=''
    49 if [ "$1" != "" ]
    50 then
    51         if [ "$1" == '--verbose' ]
    52         then
    53                 cmake_args="$cmake_args  -D CMAKE_VERBOSE_MAKEFILE=1"
    54         else
    55                 echo 'usage: bin/check_all.sh: [--verbose]'
    56                 exit 1
    57         fi
    58 fi
    59 # -----------------------------------------------------------------------------
    6048# Create package to run test in
    6149echo "bin/package.sh"
     
    8977        fi
    9078done
    91 echo_log_eval mkdir build
     79echo_log_eval bin/run_cmake.sh
    9280echo_log_eval cd build
    93 # -----------------------------------------------------------------------------
    94 cmake_args="$cmake_args  -D cmake_install_prefix=$HOME/prefix/cppad"
    95 if [ -d '/usr/include' ]
    96 then
    97         cmake_args="$cmake_args -D cmake_install_includedirs=include"
    98 fi
    99 #
    100 if [ -d '/usr/share' ]
    101 then
    102         cmake_args="$cmake_args -D cmake_install_datadir=share"
    103 fi
    104 #
    105 if [ -d '/usr/lib64' ]
    106 then
    107         cmake_args="$cmake_args -D cmake_install_libdirs='lib64;lib'"
    108 elif [ -d '/usr/lib' ]
    109 then
    110         cmake_args="$cmake_args -D cmake_install_libdirs='lib;lib64'"
    111 fi
    112 for package in adolc eigen ipopt fadbad sacado
    113 do
    114         dir=$HOME/prefix/$package
    115         if [ -d "$dir" ]
    116         then
    117                 cmake_args="$cmake_args  -D ${package}_prefix=$dir"
    118         fi
    119 done
    120 cmake_args="$cmake_args -D cppad_cxx_flags=\
    121 '-Wall -pedantic-errors -std=c++11 -Wshadow'"
    122 cmake_args="$cmake_args -D cppad_documentation=YES"
    123 #
    124 cmake_args="$cmake_args -D cppad_sparse_list=YES"
    125 cmake_args="$cmake_args -D cppad_testvector=boost"
    126 cmake_args="$cmake_args -D cppad_tape_id_type='int'"
    127 cmake_args="$cmake_args -D cppad_tape_addr_type=int"
    128 cmake_args="$cmake_args -D cppad_max_num_threads=48"
    129 #
    130 #
    131 echo_log_eval cmake $cmake_args ..
    13281# -----------------------------------------------------------------------------
    13382echo_log_eval make check
Note: See TracChangeset for help on using the changeset viewer.