summaryrefslogtreecommitdiff
path: root/Modules/FindPythonLibs.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-01-19 14:02:57 -0500
committerCMake Topic Stage <kwrobot@kitware.com>2011-01-19 14:02:57 -0500
commita104712d41a997557a00a6e8950aeb761c84bf5b (patch)
tree07c0d0e24f17015ab53970b0b97dbdb1c654b64b /Modules/FindPythonLibs.cmake
parentcc6ba3abff983f7da6dd1301e422618065f38551 (diff)
parent23635ff1a0465010e8854d6f436042f03be79cd3 (diff)
downloadcmake-a104712d41a997557a00a6e8950aeb761c84bf5b.tar.gz
Merge topic 'python-modules-header'
23635ff Bug #11715 - generate header in the build tree.
Diffstat (limited to 'Modules/FindPythonLibs.cmake')
-rw-r--r--Modules/FindPythonLibs.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/FindPythonLibs.cmake b/Modules/FindPythonLibs.cmake
index 780ffc2f80..333e0754e1 100644
--- a/Modules/FindPythonLibs.cmake
+++ b/Modules/FindPythonLibs.cmake
@@ -151,6 +151,7 @@ FUNCTION(PYTHON_WRITE_MODULES_HEADER _filename)
GET_FILENAME_COMPONENT(_name "${_filename}" NAME)
STRING(REPLACE "." "_" _name "${_name}")
STRING(TOUPPER ${_name} _nameUpper)
+ SET(_filename ${CMAKE_CURRENT_BINARY_DIR}/${_filename})
SET(_filenameTmp "${_filename}.in")
FILE(WRITE ${_filenameTmp} "/*Created by cmake, do not edit, changes will be lost*/\n")