Fixing the build directory for cardioid. (#16640)
* Fixing the build directory for cardioid. * These imports are no longer needed due to deletions. Co-authored-by: Robert Blake <rob.c.blake.3@gmail.com>
This commit is contained in:
parent
5875bc6d6b
commit
b987444871
1 changed files with 0 additions and 16 deletions
|
@ -4,8 +4,6 @@
|
|||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||
|
||||
from spack import *
|
||||
import spack.environment as ev
|
||||
import os
|
||||
|
||||
|
||||
class Cardioid(CMakePackage):
|
||||
|
@ -32,20 +30,6 @@ class Cardioid(CMakePackage):
|
|||
depends_on('cmake@3.1:', type='build')
|
||||
depends_on('perl', type='build')
|
||||
|
||||
@property
|
||||
def build_directory(self):
|
||||
"""Returns the directory to use when building the package
|
||||
|
||||
:return: directory where to build the package
|
||||
"""
|
||||
env = ev.get_env(None, 'env status')
|
||||
if not env:
|
||||
basename = str(self.spec.arch)
|
||||
else:
|
||||
basename = env.name
|
||||
|
||||
return os.path.join(self.stage.source_path, "build", basename)
|
||||
|
||||
def cmake_args(self):
|
||||
spec = self.spec
|
||||
args = [
|
||||
|
|
Loading…
Reference in a new issue