Merge topic 'python-modules-header'

23635ff Bug #11715 - generate header in the build tree.
This commit is contained in:
Brad King 2011-01-19 14:02:57 -05:00 committed by CMake Topic Stage
commit a104712d41
1 changed files with 1 additions and 0 deletions

View File

@ -151,6 +151,7 @@ FUNCTION(PYTHON_WRITE_MODULES_HEADER _filename)
GET_FILENAME_COMPONENT(_name "${_filename}" NAME) GET_FILENAME_COMPONENT(_name "${_filename}" NAME)
STRING(REPLACE "." "_" _name "${_name}") STRING(REPLACE "." "_" _name "${_name}")
STRING(TOUPPER ${_name} _nameUpper) STRING(TOUPPER ${_name} _nameUpper)
SET(_filename ${CMAKE_CURRENT_BINARY_DIR}/${_filename})
SET(_filenameTmp "${_filename}.in") SET(_filenameTmp "${_filename}.in")
FILE(WRITE ${_filenameTmp} "/*Created by cmake, do not edit, changes will be lost*/\n") FILE(WRITE ${_filenameTmp} "/*Created by cmake, do not edit, changes will be lost*/\n")