From dd2cf788cd2444912314470912b906fbf7ec6b85 Mon Sep 17 00:00:00 2001
From: marco <marco@5a81b35b-ba03-0410-adc8-b2c5c5119f08>
Date: Wed, 14 Apr 2010 12:30:43 +0000
Subject: [PATCH] allow nested subdirectories for Python modules

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@1996 5a81b35b-ba03-0410-adc8-b2c5c5119f08
---
 cmake_support/OST.cmake | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cmake_support/OST.cmake b/cmake_support/OST.cmake
index 07ba46602..6d04eb292 100644
--- a/cmake_support/OST.cmake
+++ b/cmake_support/OST.cmake
@@ -431,11 +431,11 @@ macro(pymod)
           endforeach()
           install(FILES ${_ABS_PY_FILES} DESTINATION
                   "${LIB_DIR}/${PYMOD_DIR}/${_DIR}")
-          set(_D "${_HEADER_OUTPUT_DIR}/${_DIR}")
-          add_custom_target("${_ARG_NAME}_${_DIR}_pymod" ALL)
+          string(REPLACE "/" "_" _DIR_NO_SLASH "${_DIR}")
+          add_custom_target("${_ARG_NAME}_${_DIR_NO_SLASH}_pymod" ALL)
           copy_if_different("./" "${PYMOD_STAGE_DIR}/${_DIR}" 
                             "${_ABS_PY_FILES}" "TARGETS"
-                            "${_ARG_NAME}_${_DIR}_pymod")
+                            "${_ARG_NAME}_${_DIR_NO_SLASH}_pymod")
           set(_PY_FILES)
         else()
           list(APPEND _PY_FILES "${_PY_FILE}")
-- 
GitLab