From 031ead4d99e93cb64f53ac0f2903f89c8567f69c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 4 Jan 2026 22:22:29 +0100 Subject: [PATCH] CMake: show a Python-bindings-specific option only if they're enabled. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3eab10a..5d13d17 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -99,7 +99,7 @@ endif() option(MAGNUM_BUILD_TESTS "Build unit tests" OFF) -if(MAGNUM_BUILD_STATIC AND UNIX) +if(MAGNUM_WITH_PYTHON AND MAGNUM_BUILD_STATIC AND UNIX) # See src/python/corrade/__init__.py.in and the corresponding CMakeLists # for details option(MAGNUM_BUILD_PYTHON_BINDINGS_RTLD_GLOBAL "Build Python bindings linking to static libraries with RTLD_GLOBAL enabled for loading" ON)