root/trunk/digitalme/configure

Revision 2397, 0.6 kB (checked in by ahodgkinson, 4 months ago)

digitalme: Changed test for cmake in configure script.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
Line 
1#!/bin/sh
2
3rm -f CMakeCache.txt 1>&2> /dev/null
4rm -rf build 1>&2> /dev/null
5
6echo "Checking for CMake ..."
7cmake_path=""
8
9if [ -f /usr/local/bin/cmake ]
10then
11        cmake_path="/usr/local/bin/cmake"
12fi
13
14if [ -f /usr/bin/cmake ]
15then
16        cmake_path="/usr/bin/cmake"
17fi
18
19if [ -f /bin/cmake ]
20then
21        cmake_path="/bin/cmake"
22fi
23
24if [ -n "$cmake_path" ]
25then
26        echo "CMake is installed ($cmake_path), configuring digitalme..."
27        cmake . $1 $2 $3 $4 $5
28else
29        echo -e "\033[31m-- cmake is not installed, please install the correct cmake package or download it from \"www.cmake.org\"\033[0m"
30fi
Note: See TracBrowser for help on using the browser.