From: Julien Schueller Date: Wed, 10 Apr 2024 13:43:49 +0000 (+0200) Subject: CMake: Fix windows SPDIR X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fjsr%2Fwinstall;p=tools%2Fmedcoupling.git CMake: Fix windows SPDIR --- 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")