ISAAC: Fix CMakeLists.txt Path (#4374)

Somehow the path to `CMakeLists.txt` via the class property
`root_cmakelists_dir` was relative but is now actually relative
to `spack-build/`.

Close 4324 by providing a path relative to the source repo
of the stage via a method instead of a member variable
This commit is contained in:
Axel Huebl
2017-05-30 21:55:50 +02:00
committed by Adam J. Stewart
parent d9d5135ec9
commit 7e3a11b46a
2 changed files with 6 additions and 2 deletions

View File

@@ -31,7 +31,9 @@ class IsaacServer(CMakePackage):
homepage = "http://computationalradiationphysics.github.io/isaac/"
url = "https://github.com/ComputationalRadiationPhysics/isaac/archive/v1.3.0.tar.gz"
root_cmakelists_dir = 'server'
@property
def root_cmakelists_dir(self):
return join_path(self.stage.source_path, 'server')
version('develop', branch='dev',
git='https://github.com/ComputationalRadiationPhysics/isaac.git')

View File

@@ -31,7 +31,9 @@ class Isaac(CMakePackage):
homepage = "http://computationalradiationphysics.github.io/isaac/"
url = "https://github.com/ComputationalRadiationPhysics/isaac/archive/v1.3.0.tar.gz"
root_cmakelists_dir = 'lib'
@property
def root_cmakelists_dir(self):
return join_path(self.stage.source_path, 'lib')
version('develop', branch='dev',
git='https://github.com/ComputationalRadiationPhysics/isaac.git')