Refactor USE=static cmake code.
authorRobin H. Johnson <robbat2@gentoo.org>
Tue, 27 Dec 2011 07:34:18 +0000 (07:34 +0000)
committerRobin H. Johnson <robbat2@gentoo.org>
Tue, 27 Dec 2011 07:34:18 +0000 (07:34 +0000)
eclass/mysql-cmake.eclass

index faf1e3548dad5885846395f9df4c5446fe10f7a6..b882ff54963ab8327563ba82202d2c37158717bd 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2011 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/mysql-cmake.eclass,v 1.2 2011/09/30 02:10:24 jmbsvicetto Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/mysql-cmake.eclass,v 1.3 2011/12/27 07:34:18 robbat2 Exp $
 
 # @ECLASS: mysql-cmake.eclass
 # @MAINTAINER:
@@ -123,13 +123,8 @@ configure_cmake_standard() {
                -DWITHOUT_LIBWRAP=1
        )
 
-       if use static ; then
-               mycmakeargs+=( -DDISABLE_SHARED=1 )
-       else
-               mycmakeargs+=( -DDISABLED_SHARED=0 )
-       fi
-
        mycmakeargs+=(
+               $(cmake-utils_use_disable !static SHARED)
                $(cmake-utils_use_with debug)
                $(cmake-utils_use_with embedded EMBEDDED_SERVER)
                $(cmake-utils_use_with profiling)