]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
CMake: Fix windows SPDIR jsr/winstall 6/head
authorJulien Schueller <schueller@phimeca.com>
Wed, 10 Apr 2024 13:43:49 +0000 (15:43 +0200)
committerJulien Schueller <schueller@phimeca.com>
Wed, 10 Apr 2024 13:43:49 +0000 (15:43 +0200)
CMakeLists.txt

index 3053089cdebe6b04ab8856f13dd95e651880b18d..617c2929cc10bcab342731a38f065ae7553c4b60 100644 (file)
@@ -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")