aboutsummaryrefslogtreecommitdiff
path: root/libs/plugin_python/CMakeLists.txt
diff options
context:
space:
mode:
authorSulfurNitride <SulfurNitride@users.noreply.github.com>2026-02-15 12:22:51 -0600
committerSulfurNitride <SulfurNitride@users.noreply.github.com>2026-02-15 12:22:51 -0600
commitbd25ca97297d766bc24fb09e0f95d1bf7d2baf73 (patch)
tree85054cfa12c07026c5945ceee5d804fddb6ab35f /libs/plugin_python/CMakeLists.txt
parent6410929e17d642618f284d5c97d457f1ac653e6e (diff)
Fix RPATH, absolute instance paths, Proton symlink matching, umu-run logging, pybind11 warning
- Set $ORIGIN-relative RPATH on binaries so they find libs without LD_LIBRARY_PATH (fixes #12) - Check QDir::isAbsolutePath before concatenating instance paths to prevent doubling of custom portable paths - Canonicalize paths when matching Proton installations to handle symlinks in /usr/share/steam/compatibilitytools.d/ (fixes #8) - Add diagnostic logging for umu-run resolution showing preference, bundled/system paths, and final selection (helps diagnose #8) - Warn at CMake time if pybind11 >= 2.14 is detected (documents #9) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'libs/plugin_python/CMakeLists.txt')
-rw-r--r--libs/plugin_python/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/plugin_python/CMakeLists.txt b/libs/plugin_python/CMakeLists.txt
index 411a82e..6d33f5b 100644
--- a/libs/plugin_python/CMakeLists.txt
+++ b/libs/plugin_python/CMakeLists.txt
@@ -7,6 +7,9 @@ set(MO2_QT_VERSION_MAJOR 6)
find_package(Python COMPONENTS Interpreter Development REQUIRED)
find_package(pybind11 CONFIG REQUIRED)
+if(pybind11_VERSION VERSION_GREATER_EQUAL "2.14")
+ message(WARNING "pybind11 ${pybind11_VERSION} detected. Versions >= 2.14 may cause build errors with MO2's Python plugin. Use 2.13.x or build with the container (./build-native.sh).")
+endif()
get_filename_component(Python_HOME ${Python_EXECUTABLE} PATH)
set(Python_DLL_DIR "${Python_HOME}")