Skip to content

top level cmake build doesn't forward Python_EXECUTABLE, Python_LIBRARY, Python_INCLUDE_DIR to gravity_external #225

@JaredDiCioccio

Description

@JaredDiCioccio

In some environments it might be necessary to specify a specific Python distribution when building. This can be done via command line switches, for example:

-DPython_EXECUTABLE=/usr/bin/python3.8
-DPython_LIBRARY=/usr/lib/python3.8/config-3.8-aarch64-linux-gnu/libpython3.8.so
-DPython_INCLUDE_DIR=/usr/include/python3.8

Doing so allows the cmake FindPython macros to find the appropriate libraries when linking.

However these values do not get passed down to the gravity_external projects, so effectively get ignored, resulting in gravity python libs being linked against a potentially wrong version of Python.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions