From 23635ff1a0465010e8854d6f436042f03be79cd3 Mon Sep 17 00:00:00 2001 From: "Marcus D. Hanwell" Date: Mon, 17 Jan 2011 15:29:01 -0500 Subject: 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. --- Modules/FindPythonLibs.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/Modules/FindPythonLibs.cmake b/Modules/FindPythonLibs.cmake index 6e5f6ef..ad98598 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") -- cgit v0.12