/[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.75 Revision 1.76
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2011 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.75 2011/08/29 01:28:10 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.76 2011/10/06 13:33:51 haubi 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:
318 SET (CMAKE_C_COMPILE_OBJECT "<CMAKE_C_COMPILER> <DEFINES> ${CPPFLAGS} <FLAGS> -o <OBJECT> -c <SOURCE>" CACHE STRING "C compile command" FORCE) 318 SET (CMAKE_C_COMPILE_OBJECT "<CMAKE_C_COMPILER> <DEFINES> ${CPPFLAGS} <FLAGS> -o <OBJECT> -c <SOURCE>" CACHE STRING "C compile command" FORCE)
319 SET (CMAKE_CXX_COMPILER $(type -P $(tc-getCXX)) CACHE FILEPATH "C++ compiler" FORCE) 319 SET (CMAKE_CXX_COMPILER $(type -P $(tc-getCXX)) CACHE FILEPATH "C++ compiler" FORCE)
320 SET (CMAKE_CXX_COMPILE_OBJECT "<CMAKE_CXX_COMPILER> <DEFINES> ${CPPFLAGS} <FLAGS> -o <OBJECT> -c <SOURCE>" CACHE STRING "C++ compile command" FORCE) 320 SET (CMAKE_CXX_COMPILE_OBJECT "<CMAKE_CXX_COMPILER> <DEFINES> ${CPPFLAGS} <FLAGS> -o <OBJECT> -c <SOURCE>" CACHE STRING "C++ compile command" FORCE)
321 _EOF_ 321 _EOF_
322 322
323 if use prefix; then 323 has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX=
324
325 if [[ ${EPREFIX} ]]; then
324 cat >> "${build_rules}" <<- _EOF_ 326 cat >> "${build_rules}" <<- _EOF_
325 # in Prefix we need rpath and must ensure cmake gets our default linker path 327 # in Prefix we need rpath and must ensure cmake gets our default linker path
326 # right ... except for Darwin hosts 328 # right ... except for Darwin hosts
327 IF (NOT APPLE) 329 IF (NOT APPLE)
328 SET (CMAKE_SKIP_RPATH OFF CACHE BOOL "" FORCE) 330 SET (CMAKE_SKIP_RPATH OFF CACHE BOOL "" FORCE)
358 if [[ $(declare -p mycmakeargs 2>&-) != "declare -a mycmakeargs="* ]]; then 360 if [[ $(declare -p mycmakeargs 2>&-) != "declare -a mycmakeargs="* ]]; then
359 local mycmakeargs_local=(${mycmakeargs}) 361 local mycmakeargs_local=(${mycmakeargs})
360 else 362 else
361 local mycmakeargs_local=("${mycmakeargs[@]}") 363 local mycmakeargs_local=("${mycmakeargs[@]}")
362 fi 364 fi
363
364 has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX=
365 365
366 # Common configure parameters (overridable) 366 # Common configure parameters (overridable)
367 # NOTE CMAKE_BUILD_TYPE can be only overriden via CMAKE_BUILD_TYPE eclass variable 367 # NOTE CMAKE_BUILD_TYPE can be only overriden via CMAKE_BUILD_TYPE eclass variable
368 # No -DCMAKE_BUILD_TYPE=xxx definitions will be in effect. 368 # No -DCMAKE_BUILD_TYPE=xxx definitions will be in effect.
369 local cmakeargs=( 369 local cmakeargs=(

Legend:
Removed from v.1.75  
changed lines
  Added in v.1.76

  ViewVC Help
Powered by ViewVC 1.1.20