/[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.23 Revision 1.24
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2009 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.23 2009/04/04 12:28:10 scarabeus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.24 2009/04/10 20:24:56 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#
224# @DESCRIPTION: 224# @DESCRIPTION:
225# General function for configuring with cmake. Default behaviour is to start an 225# General function for configuring with cmake. Default behaviour is to start an
226# out-of-source build. 226# out-of-source build.
227cmake-utils_src_configure() { 227cmake-utils_src_configure() {
228 debug-print-function ${FUNCNAME} "$@" 228 debug-print-function ${FUNCNAME} "$@"
229
230 # check if CMakeLists.txt exist and if no then die
231 if [[ ! -e "${S}"/CMakeLists.txt ]] ; then
232 eerror "I was unable to locate CMakeLists.txt under:"
233 eerror "\"${S}/CMakeLists.txt\""
234 eerror "You should consider not inheriting the cmake eclass."
235 die "FATAL: Unable to find CMakeLists.txt"
236 fi
229 237
230 # Remove dangerous things. 238 # Remove dangerous things.
231 _modify-cmakelists 239 _modify-cmakelists
232 240
233 # @SEE CMAKE_BUILD_TYPE 241 # @SEE CMAKE_BUILD_TYPE

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

  ViewVC Help
Powered by ViewVC 1.1.20