install GKlib headers along with METIS
This commit is contained in:
parent
38ea75e8ca
commit
7fb463abb9
2 changed files with 33 additions and 2 deletions
|
@ -0,0 +1,22 @@
|
||||||
|
# HG changeset patch
|
||||||
|
# User Sean Farley <sean@mcs.anl.gov>
|
||||||
|
# Date 1332269671 18000
|
||||||
|
# Tue Mar 20 13:54:31 2012 -0500
|
||||||
|
# Node ID b95c0c2e1d8bf8e3273f7d45e856f0c0127d998e
|
||||||
|
# Parent 88049269953c67c3fdcc4309bf901508a875f0dc
|
||||||
|
cmake: add gklib headers to install into include
|
||||||
|
|
||||||
|
diff -r 88049269953c -r b95c0c2e1d8b libmetis/CMakeLists.txt
|
||||||
|
Index: libmetis/CMakeLists.txt
|
||||||
|
===================================================================
|
||||||
|
--- a/libmetis/CMakeLists.txt Tue Mar 20 13:54:29 2012 -0500
|
||||||
|
+++ b/libmetis/CMakeLists.txt Tue Mar 20 13:54:31 2012 -0500
|
||||||
|
@@ -12,6 +12,8 @@ endif()
|
||||||
|
if(METIS_INSTALL)
|
||||||
|
install(TARGETS metis
|
||||||
|
LIBRARY DESTINATION lib
|
||||||
|
RUNTIME DESTINATION lib
|
||||||
|
ARCHIVE DESTINATION lib)
|
||||||
|
+ install(FILES gklib_defs.h DESTINATION include)
|
||||||
|
+ install(FILES gklib_rename.h DESTINATION include)
|
||||||
|
endif()
|
|
@ -24,7 +24,7 @@
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
from spack import *
|
from spack import *
|
||||||
|
import glob
|
||||||
|
|
||||||
class Metis(Package):
|
class Metis(Package):
|
||||||
"""
|
"""
|
||||||
|
@ -49,6 +49,8 @@ class Metis(Package):
|
||||||
|
|
||||||
depends_on('gdb', when='+gdb')
|
depends_on('gdb', when='+gdb')
|
||||||
|
|
||||||
|
patch('install_gklib_defs_rename.patch')
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
def install(self, spec, prefix):
|
||||||
|
|
||||||
options = []
|
options = []
|
||||||
|
@ -80,4 +82,11 @@ def install(self, spec, prefix):
|
||||||
with working_dir(build_directory, create=True):
|
with working_dir(build_directory, create=True):
|
||||||
cmake(source_directory, *options)
|
cmake(source_directory, *options)
|
||||||
make()
|
make()
|
||||||
make("install")
|
make("install")
|
||||||
|
|
||||||
|
# install GKlib headers, which will be needed for ParMETIS
|
||||||
|
GKlib_dist = join_path(prefix.include,'GKlib')
|
||||||
|
mkdirp(GKlib_dist)
|
||||||
|
fs = glob.glob(join_path(source_directory,'GKlib',"*.h"))
|
||||||
|
for f in fs:
|
||||||
|
install(f, GKlib_dist)
|
||||||
|
|
Loading…
Reference in a new issue