/[gentoo-x86]/eclass/cmake-utils.eclass
Gentoo

Diff of /eclass/cmake-utils.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.63 Revision 1.64
1# Copyright 1999-2010 Gentoo Foundation 1# Copyright 1999-2010 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.63 2011/01/13 19:17:00 grobian Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.64 2011/01/19 12:44:55 scarabeus Exp $
4 4
5# @ECLASS: cmake-utils.eclass 5# @ECLASS: cmake-utils.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# kde@gentoo.org 7# kde@gentoo.org
8# 8#
28# used for optionality) 28# used for optionality)
29WANT_CMAKE="${WANT_CMAKE:-always}" 29WANT_CMAKE="${WANT_CMAKE:-always}"
30 30
31# @ECLASS-VARIABLE: CMAKE_MIN_VERSION 31# @ECLASS-VARIABLE: CMAKE_MIN_VERSION
32# @DESCRIPTION: 32# @DESCRIPTION:
33# Specify the minimum required CMake version. Default is 2.6.2-r1 33# Specify the minimum required CMake version. Default is 2.8.1
34CMAKE_MIN_VERSION="${CMAKE_MIN_VERSION:-2.6.2-r1}" 34CMAKE_MIN_VERSION="${CMAKE_MIN_VERSION:-2.8.1}"
35 35
36CMAKEDEPEND="" 36CMAKEDEPEND=""
37case ${WANT_CMAKE} in 37case ${WANT_CMAKE} in
38 always) 38 always)
39 ;; 39 ;;
266} 266}
267 267
268enable_cmake-utils_src_configure() { 268enable_cmake-utils_src_configure() {
269 debug-print-function ${FUNCNAME} "$@" 269 debug-print-function ${FUNCNAME} "$@"
270 270
271 _check_build_dir init 271 _check_build_dir
272 272
273 # check if CMakeLists.txt exist and if no then die 273 # check if CMakeLists.txt exist and if no then die
274 if [[ ! -e ${CMAKE_USE_DIR}/CMakeLists.txt ]] ; then 274 if [[ ! -e ${CMAKE_USE_DIR}/CMakeLists.txt ]] ; then
275 eerror "Unable to locate CMakeLists.txt under:" 275 eerror "Unable to locate CMakeLists.txt under:"
276 eerror "\"${CMAKE_USE_DIR}/CMakeLists.txt\"" 276 eerror "\"${CMAKE_USE_DIR}/CMakeLists.txt\""

Legend:
Removed from v.1.63  
changed lines
  Added in v.1.64

  ViewVC Help
Powered by ViewVC 1.1.20