summaryrefslogtreecommitdiff
path: root/textproc/zorba/files/patch-swig-python_CMakeLists.txt
blob: c7eb97dbfd23eb1734658b66369518263223a6d2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- swig/python/CMakeLists.txt.orig	2010-07-14 15:23:16.000000000 +0200
+++ swig/python/CMakeLists.txt	2011-08-11 17:07:52.000000000 +0200
@@ -12,6 +12,8 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+IF (WITH_PYTHON)
+
 # install path determined from where Python lives 
 FIND_PACKAGE(PythonInterp)
 FIND_PACKAGE(PythonLibs)
@@ -43,9 +45,11 @@
 ELSE(NOT WIN32)
 INSTALL ( FILES ${CMAKE_CURRENT_BINARY_DIR}/zorba_api.py
           ${CMAKE_CURRENT_BINARY_DIR}/_zorba_api.pyd
-          DESTINATION bin/python )
+          DESTINATION ${PYTHON_SWIG_INSTALL_DIR})
 ENDIF(NOT WIN32)
 
 ELSE (PYTHON_LIBRARIES AND PYTHON_INCLUDE_PATH)
   MESSAGE(STATUS "SWIG Python: binding not generated because library and include files are not installed.")
 ENDIF (PYTHON_LIBRARIES AND PYTHON_INCLUDE_PATH)
+
+ENDIF (WITH_PYTHON)