This is an archive of the discontinued LLVM Phabricator instance.

tools/CMakeLists: Use a macro for common code, fix custom_command output
ClosedPublic

Authored by MatzeB on Jan 13 2016, 1:43 PM.

Details

Summary

Removing the explicit ${CMAKE_CURRENT_BINARY_DIR}/ prefix from the
add_custom_command OUTPUT part, fixes ninja warnings for me. I assume this is possible now after we chose a different target name for the add_custom_target().

This version works fine for me with ninja and make now. Does this look sensible and work for others?

Diff Detail

Repository
rL LLVM

Event Timeline

MatzeB updated this revision to Diff 44783.Jan 13 2016, 1:43 PM
MatzeB retitled this revision from to tools/CMakeLists: Use a macro for common code, fix custom_command output.
MatzeB updated this object.
MatzeB added reviewers: jlebar, mcrosier, jmolloy.
MatzeB set the repository for this revision to rL LLVM.
MatzeB added a subscriber: llvm-commits.
jlebar edited edge metadata.Jan 13 2016, 2:12 PM

wfm with ninja. I don't (yet) know enough cmake to feel comfortable approving this patch, though.

jlebar removed a reviewer: jlebar.Jan 13 2016, 5:52 PM
jlebar added a subscriber: jlebar.
mcrosier accepted this revision.Jan 18 2016, 9:47 AM
mcrosier edited edge metadata.

LGTM. Works in both make and ninja as far as I can tell.

This revision is now accepted and ready to land.Jan 18 2016, 9:47 AM
This revision was automatically updated to reflect the committed changes.