[Cmake-commits] [cmake-commits] marcus.hanwell committed FindPythonLibs.cmake 1.48 1.49

cmake-commits at cmake.org cmake-commits at cmake.org
Wed Feb 17 14:36:19 EST 2010


Update of /cvsroot/CMake/CMake/Modules
In directory public:/mounts/ram/cvs-serv4745/Modules

Modified Files:
	FindPythonLibs.cmake 
Log Message:
A few small changed from Pat Marion (in VTK CVS too)


Index: FindPythonLibs.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/FindPythonLibs.cmake,v
retrieving revision 1.48
retrieving revision 1.49
diff -C 2 -d -r1.48 -r1.49
*** FindPythonLibs.cmake	17 Feb 2010 16:37:37 -0000	1.48
--- FindPythonLibs.cmake	17 Feb 2010 19:36:17 -0000	1.49
***************
*** 169,178 ****
  
    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")
    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")
    ENDFOREACH(_currentModule ${PY_STATIC_MODULES_LIST})
    FILE(APPEND ${_filenameTmp} "}\n\n")
--- 169,178 ----
  
    FOREACH(_currentModule ${PY_STATIC_MODULES_LIST})
!     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} "  ${_name}_${_currentModule}();\n")
    ENDFOREACH(_currentModule ${PY_STATIC_MODULES_LIST})
    FILE(APPEND ${_filenameTmp} "}\n\n")



More information about the Cmake-commits mailing list