diff options
-rw-r--r-- | var/spack/repos/builtin/packages/clingo/package.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/clingo/package.py b/var/spack/repos/builtin/packages/clingo/package.py index bef3e146cb..4315d6a0bc 100644 --- a/var/spack/repos/builtin/packages/clingo/package.py +++ b/var/spack/repos/builtin/packages/clingo/package.py @@ -74,8 +74,13 @@ class Clingo(CMakePackage): """ python = self.spec["python"] return [ - self.define("Python_EXECUTABLE", python.command), + self.define("Python_EXECUTABLE", python.command.path), self.define("Python_INCLUDE_DIR", python.headers.directories[0]), + self.define("Python_LIBRARIES", python.libs[0]), + # XCode command line tools on macOS has no python-config executable, and + # CMake assumes you have python 2 if it does not find a python-config, + # so we set the version explicitly so that it's passed to FindPython. + self.define("CLINGO_PYTHON_VERSION", python.version.up_to(2)), ] @property |