From 4d137171ecdcac47177e9cf80510743d26712900 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Wed, 13 Aug 2025 18:01:31 +0500 Subject: [PATCH] cmake - document PYTHON_MODULE_INSTALL_DIR --- cmake/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 81f0ca75d5..7f252a8619 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -89,6 +89,12 @@ option(USERSPACE_PYTHON_PREFIX "Installs IfcPython for the current user only ins option(ADD_COMMIT_SHA "Add commit sha and branch in version number, warning results in many rebuilds, requires git" OFF) option(VERSION_OVERRIDE "Override the version defined in IfcParse.h with the file VERSION in the repository root" OFF) +set( + PYTHON_MODULE_INSTALL_DIR + "" CACHE PATH + "Directory to install IfcPython package to. By default package is installed in found Python's site-packages." +) + if (VERSION_OVERRIDE) file(READ "../VERSION" "RELEASE_VERSION_") string(STRIP "${RELEASE_VERSION_}" RELEASE_VERSION)