packages need to reference self.spec instead of spec (#5075)

This commit is contained in:
Gregory Lee
2017-08-11 15:24:40 -07:00
committed by Adam J. Stewart
parent 056faad3a2
commit 14076c52f1
4 changed files with 6 additions and 5 deletions

View File

@@ -46,7 +46,7 @@ def cmake_args(self):
# TODO: offer options for the walker used.
args = ["-DCALLPATH_WALKER=dyninst"]
if spec.satisfies("^dyninst@9.3.0:"):
if self.spec.satisfies("^dyninst@9.3.0:"):
std_flag = self.compiler.cxx11_flag
args.append("-DCMAKE_CXX_FLAGS='{0} -fpermissive'".format(
std_flag))