summaryrefslogtreecommitdiffstats
path: root/Modules/FindPythonLibs.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-01-19 19:02:57 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2011-01-19 19:02:57 (GMT)
commita104712d41a997557a00a6e8950aeb761c84bf5b (patch)
tree07c0d0e24f17015ab53970b0b97dbdb1c654b64b /Modules/FindPythonLibs.cmake
parentcc6ba3abff983f7da6dd1301e422618065f38551 (diff)
parent23635ff1a0465010e8854d6f436042f03be79cd3 (diff)
downloadCMake-a104712d41a997557a00a6e8950aeb761c84bf5b.zip
CMake-a104712d41a997557a00a6e8950aeb761c84bf5b.tar.gz
CMake-a104712d41a997557a00a6e8950aeb761c84bf5b.tar.bz2
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 780ffc2..333e075 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")