This is an archive of the discontinued LLVM Phabricator instance.

[CMake]Use LLVM_LIBRARY_DIR for lib path.
ClosedPublic

Authored by aoli on Jul 12 2017, 12:12 PM.

Details

Summary

This makes sure the correct lib path is being used when CMAKE_CFG_INTDIR or
LLVM_LIBDIR_SUFFIX is set.

Diff Detail

Repository
rL LLVM

Event Timeline

aoli created this revision.Jul 12 2017, 12:12 PM
aoli updated this revision to Diff 106328.Jul 12 2017, 3:25 PM

Use LLVM_LIBRARY_OUTPUT_INTDIR

aoli updated this revision to Diff 106461.Jul 13 2017, 10:41 AM

revert back to use LLVM_LIBRARY_DIR.

phosek added inline comments.Jul 13 2017, 11:24 AM
runtimes/CMakeLists.txt
333 ↗(On Diff #106461)

You also need to set the LLVM_LIBRARY_DIR here. I'd like to eventually deduplicate the cross-target and single-target cases to avoid do changes like these in two places.

aoli updated this revision to Diff 106491.Jul 13 2017, 12:40 PM

Pass LLVM_LIBRARY_DIR to external projects.

phosek accepted this revision.Jul 13 2017, 2:04 PM

LGTM

This revision is now accepted and ready to land.Jul 13 2017, 2:04 PM
This revision was automatically updated to reflect the committed changes.