summaryrefslogtreecommitdiff
path: root/Modules/FindPythonLibs.cmake
diff options
context:
space:
mode:
authorMarcus D. Hanwell <marcus.hanwell@kitware.com>2011-01-17 15:29:01 -0500
committerMarcus D. Hanwell <marcus.hanwell@kitware.com>2011-01-17 15:29:01 -0500
commit23635ff1a0465010e8854d6f436042f03be79cd3 (patch)
tree3d0582bbe2cb006384be2f55f1c20a57a58aa33a /Modules/FindPythonLibs.cmake
parent2d3594b1bbd48d0dc7a071a6806c75c89341e1c5 (diff)
downloadcmake-23635ff1a0465010e8854d6f436042f03be79cd3.tar.gz
Bug #11715 - generate header in the build tree.
The module header was being placed in the source tree before. Thanks to Marcel Loose for the patch, this ensures the file is written to 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 6e5f6efeb0..ad98598c7c 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")