Support other ways of doing libdir fixes for cmake, as suggested by http://www.lcfg...
authorRobin H. Johnson <robbat2@gentoo.org>
Wed, 24 Mar 2010 21:09:28 +0000 (21:09 +0000)
committerRobin H. Johnson <robbat2@gentoo.org>
Wed, 24 Mar 2010 21:09:28 +0000 (21:09 +0000)
eclass/cmake-utils.eclass

index 067dc2a41b2ae927d22cd84992f74d57fbd6fbe1..a3085ef2e6b9a8421086b985df79565ff2213d23 100644 (file)
@@ -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}"