Massive conversion from Package to CMakePackage (#4975)
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
from spack import *
|
||||
|
||||
|
||||
class Gflags(Package):
|
||||
class Gflags(CMakePackage):
|
||||
"""The gflags package contains a C++ library that implements
|
||||
commandline flags processing. It includes built-in support for
|
||||
standard types such as string and the ability to define flags
|
||||
@@ -37,11 +37,7 @@ class Gflags(Package):
|
||||
|
||||
version('2.1.2', 'ac432de923f9de1e9780b5254884599f')
|
||||
|
||||
depends_on('cmake', type='build')
|
||||
depends_on('cmake@2.8.12:', type='build')
|
||||
|
||||
def install(self, spec, prefix):
|
||||
cmake("-DCMAKE_INSTALL_PREFIX=" + prefix,
|
||||
"-DBUILD_SHARED_LIBS=ON")
|
||||
make()
|
||||
make("test")
|
||||
make("install")
|
||||
def cmake_args(self):
|
||||
return ['-DBUILD_SHARED_LIBS=ON']
|
||||
|
Reference in New Issue
Block a user