summaryrefslogtreecommitdiffstats
path: root/Modules/FindPythonLibs.cmake
diff options
context:
space:
mode:
authorMarcus Hanwell <marcus.hanwell@kitware.com>2010-02-17 19:36:17 (GMT)
committerMarcus Hanwell <marcus.hanwell@kitware.com>2010-02-17 19:36:17 (GMT)
commit1e43973741819dd4ddb1df79636b6001b26e3613 (patch)
tree770eb50af3948ef9b042fc91e76d2e4143edf047 /Modules/FindPythonLibs.cmake
parentf7a3db6403b49525da22e8da0dc4a5b9dc08f0e4 (diff)
downloadCMake-1e43973741819dd4ddb1df79636b6001b26e3613.zip
CMake-1e43973741819dd4ddb1df79636b6001b26e3613.tar.gz
CMake-1e43973741819dd4ddb1df79636b6001b26e3613.tar.bz2
A few small changed from Pat Marion (in VTK CVS too)
Diffstat (limited to 'Modules/FindPythonLibs.cmake')
-rw-r--r--Modules/FindPythonLibs.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/FindPythonLibs.cmake b/Modules/FindPythonLibs.cmake
index 951e48c..1ba21b5 100644
--- a/Modules/FindPythonLibs.cmake
+++ b/Modules/FindPythonLibs.cmake
@@ -168,12 +168,12 @@ extern \"C\" {
FOREACH(_currentModule ${PY_STATIC_MODULES_LIST})
- FILE(APPEND ${_filenameTmp} "int CMakeLoadPythonModule_${_currentModule}(void) \n{\n static char name[]=\"${PYTHON_MODULE_PREFIX}${_currentModule}\"; return PyImport_AppendInittab(name, init${PYTHON_MODULE_PREFIX}${_currentModule});\n}\n\n")
+ FILE(APPEND ${_filenameTmp} "int ${_name}_${_currentModule}(void) \n{\n static char name[]=\"${PYTHON_MODULE_PREFIX}${_currentModule}\"; return PyImport_AppendInittab(name, init${PYTHON_MODULE_PREFIX}${_currentModule});\n}\n\n")
ENDFOREACH(_currentModule ${PY_STATIC_MODULES_LIST})
FILE(APPEND ${_filenameTmp} "void ${_name}_LoadAllPythonModules(void)\n{\n")
FOREACH(_currentModule ${PY_STATIC_MODULES_LIST})
- FILE(APPEND ${_filenameTmp} " CMakeLoadPythonModule_${_currentModule}();\n")
+ FILE(APPEND ${_filenameTmp} " ${_name}_${_currentModule}();\n")
ENDFOREACH(_currentModule ${PY_STATIC_MODULES_LIST})
FILE(APPEND ${_filenameTmp} "}\n\n")
FILE(APPEND ${_filenameTmp} "#ifndef EXCLUDE_LOAD_ALL_FUNCTION\nvoid CMakeLoadAllPythonModules(void)\n{\n ${_name}_LoadAllPythonModules();\n}\n#endif\n\n#endif\n")