/[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.39 Revision 1.40
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.39 2009/12/22 22:52:52 scarabeus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.40 2009/12/23 00:32:02 abcd 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#
229# `cmake-utils_use foo FOO` echoes -DFOO=ON if foo is enabled 229# `cmake-utils_use foo FOO` echoes -DFOO=ON if foo is enabled
230# and -DFOO=OFF if it is disabled. 230# and -DFOO=OFF if it is disabled.
231cmake-utils_use() { _use_me_now "" "$@" ; } 231cmake-utils_use() { _use_me_now "" "$@" ; }
232 232
233# Internal function for modifying hardcoded definitions. 233# Internal function for modifying hardcoded definitions.
234# Removes dangerous definitionts that override Gentoo settings. 234# Removes dangerous definitions that override Gentoo settings.
235_modify-cmakelists() { 235_modify-cmakelists() {
236 debug-print-function ${FUNCNAME} "$@" 236 debug-print-function ${FUNCNAME} "$@"
237 237
238 # Comment out all set (<some_should_be_user_defined_variable> value) 238 # Comment out all set (<some_should_be_user_defined_variable> value)
239 # TODO Add QA checker - inform when variable being checked for below is set in CMakeLists.txt 239 # TODO Add QA checker - inform when variable being checked for below is set in CMakeLists.txt
244 244
245 # NOTE Append some useful summary here 245 # NOTE Append some useful summary here
246 cat >> CMakeLists.txt <<- _EOF_ 246 cat >> CMakeLists.txt <<- _EOF_
247 247
248 MESSAGE(STATUS "<<< Gentoo configuration >>> 248 MESSAGE(STATUS "<<< Gentoo configuration >>>
249 Build type: ${CMAKE_BUILD_TYPE} 249 Build type: \${CMAKE_BUILD_TYPE}
250 Install path: ${CMAKE_INSTALL_PREFIX}\n") 250 Install path: \${CMAKE_INSTALL_PREFIX}\n")
251 _EOF_ 251 _EOF_
252} 252}
253 253
254# @FUNCTION: enable_cmake-utils_src_configure 254# @FUNCTION: enable_cmake-utils_src_configure
255# @DESCRIPTION: 255# @DESCRIPTION:

Legend:
Removed from v.1.39  
changed lines
  Added in v.1.40

  ViewVC Help
Powered by ViewVC 1.1.20