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.
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.