From 1dd6b1c053c3d32a246deeb9d83763543e776b4b Mon Sep 17 00:00:00 2001 From: Julien Schueller Date: Wed, 10 Apr 2024 15:43:49 +0200 Subject: [PATCH] CMake: Fix windows SPDIR --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3053089cd..617c2929c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -255,7 +255,11 @@ SET(MEDCOUPLING_INSTALL_SCRIPT_PYTHON ${MEDCOUPLING_INSTALL_BINS} CACHE PATH "In SET(MEDCOUPLING_INSTALL_CMAKE_LOCAL cmake_files CACHE PATH "Install path: local MEDCoupling CMake files") IF(MEDCOUPLING_ENABLE_PYTHON) - SET(_pydir lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages) + IF(WIN32) + SET(_pydir Lib/site-packages) + ELSE() + SET(_pydir lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages) + ENDIF() SET(MEDCOUPLING_INSTALL_PYTHON ${_pydir} CACHE PATH "Install path: MEDCoupling Python stuff") SET(MEDCOUPLING_INSTALL_PYTHON_SHARED ${MEDCOUPLING_INSTALL_PYTHON}/shared_modules CACHE PATH "Install path: MEDCoupling Python shared modules") -- 2.39.2