summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2010-03-24 21:09:28 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2010-03-24 21:09:28 +0000
commita071f5f142f5838c8981019b67107c92b0dfb912 (patch)
tree64079df3ef2e89a8eefb1954f3e64f0d734327cf /eclass/cmake-utils.eclass
parentBug #303555: mysql-community users should switch to dev-db/mysql properly. (diff)
downloadhistorical-a071f5f142f5838c8981019b67107c92b0dfb912.tar.gz
historical-a071f5f142f5838c8981019b67107c92b0dfb912.tar.bz2
historical-a071f5f142f5838c8981019b67107c92b0dfb912.zip
Support other ways of doing libdir fixes for cmake, as suggested by http://www.lcfg.org/doc/buildtools/cmake_recipes.html.
Diffstat (limited to 'eclass/cmake-utils.eclass')
-rw-r--r--eclass/cmake-utils.eclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass
index 067dc2a41b2a..a3085ef2e6b9 100644
--- a/eclass/cmake-utils.eclass
+++ b/eclass/cmake-utils.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.47 2010/02/11 18:00:05 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.48 2010/03/24 21:09:28 robbat2 Exp $
# @ECLASS: cmake-utils.eclass
# @MAINTAINER:
@@ -308,6 +308,7 @@ enable_cmake-utils_src_configure() {
local libdir=$(get_libdir)
cat > "${common_config}" <<- _EOF_
SET (LIB_SUFFIX ${libdir/lib} CACHE STRING "library path suffix" FORCE)
+ SET (CMAKE_INSTALL_LIBDIR ${libdir} CACHE PATH "Output directory for libraries")
_EOF_
[[ -n ${NOCOLOR} ]] || echo 'SET (CMAKE_COLOR_MAKEFILE OFF CACHE BOOL "pretty colors during make" FORCE)' >> "${common_config}"