/[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.84 Revision 1.85
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 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.84 2012/10/17 14:09:10 kensington Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.85 2012/10/25 12:48:58 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# @AUTHOR: 8# @AUTHOR:
264# Removes dangerous definitions that override Gentoo settings. 264# Removes dangerous definitions that override Gentoo settings.
265_modify-cmakelists() { 265_modify-cmakelists() {
266 debug-print-function ${FUNCNAME} "$@" 266 debug-print-function ${FUNCNAME} "$@"
267 267
268 # Only edit the files once 268 # Only edit the files once
269 grep -qs "<<< Gentoo configuration >>>" CMakeLists.txt && return 0 269 grep -qs "<<< Gentoo configuration >>>" "${CMAKE_USE_DIR}"/CMakeLists.txt && return 0
270 270
271 # Comment out all set (<some_should_be_user_defined_variable> value) 271 # Comment out all set (<some_should_be_user_defined_variable> value)
272 # TODO Add QA checker - inform when variable being checked for below is set in CMakeLists.txt 272 # TODO Add QA checker - inform when variable being checked for below is set in CMakeLists.txt
273 find "${CMAKE_USE_DIR}" -name CMakeLists.txt \ 273 find "${CMAKE_USE_DIR}" -name CMakeLists.txt \
274 -exec sed -i -e '/^[[:space:]]*[sS][eE][tT][[:space:]]*([[:space:]]*CMAKE_BUILD_TYPE.*)/{s/^/#IGNORE /g}' {} + \ 274 -exec sed -i -e '/^[[:space:]]*[sS][eE][tT][[:space:]]*([[:space:]]*CMAKE_BUILD_TYPE.*)/{s/^/#IGNORE /g}' {} + \

Legend:
Removed from v.1.84  
changed lines
  Added in v.1.85

  ViewVC Help
Powered by ViewVC 1.1.20