<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - configure_file in clang/test/CMakeLists.txt doesn't work with VisualStudio"
href="https://bugs.llvm.org/show_bug.cgi?id=44311">44311</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>configure_file in clang/test/CMakeLists.txt doesn't work with VisualStudio
</td>
</tr>
<tr>
<th>Product</th>
<td>Build scripts
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>cmake
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>yurybura@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>This code doesn't work with Visual Studio:
configure_file(AST/gen_ast_dump_json_test.py
${LLVM_TOOLS_BINARY_DIR}/gen_ast_dump_json_test.py COPYONLY)
because LLVM_TOOLS_BINARY_DIR for VS generator looks like
"[...]/build/$(Configuration)/bin"
Issue was added in the commit:
Revision: d09e811cb4da3fab554f8a189a79f9ac74cb8d0d
Author: Alex Richardson <<a href="mailto:Alexander.Richardson@cl.cam.ac.uk">Alexander.Richardson@cl.cam.ac.uk</a>>
Date: 12.11.2019 14:47:54
Message:
[gen_ast_dump_json_test.py] Copy to binary directory to omit --clang argument
To fix this issue copy this file during build. For example:
add_custom_target(copy-gen-ast-dump-json-test
COMMAND ${CMAKE_COMMAND} -E copy
${CMAKE_CURRENT_SOURCE_DIR}/AST/gen_ast_dump_json_test.py
${LLVM_TOOLS_BINARY_DIR}/gen_ast_dump_json_test.py
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/AST/gen_ast_dump_json_test.py
)
set_target_properties(copy-gen-ast-dump-json-test PROPERTIES FOLDER "Clang
tests")
list(APPEND CLANG_TEST_DEPS
copy-gen-ast-dump-json-test
)</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>