]> granicus.if.org Git - clang/commit
[CMAKE][c-index-test] Honor CMAKE_OSX_SYSROOT to compute include dir for libxml2
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Thu, 14 Jun 2018 18:20:04 +0000 (18:20 +0000)
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Thu, 14 Jun 2018 18:20:04 +0000 (18:20 +0000)
commit8d508f1184162f913ec51593a1118700b018d78a
tree0ade9062913953f3861a4b1a9771745c63bcb8ee
parent26e94130c2573bb49105f5f88343b985d13acfac
[CMAKE][c-index-test] Honor CMAKE_OSX_SYSROOT to compute include dir for libxml2

On MacOS, if CMAKE_OSX_SYSROOT is used and the user has command line tools
installed, we currently get the include path for libxml2 as
/usr/include/libxml2, instead of ${CMAKE_OSX_SYSROOT}/usr/include/libxml2.

Make it consistent on MacOS by prefixing ${CMAKE_OSX_SYSROOT} when
possible.

rdar://problem/41103601

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@334747 91177308-0d34-0410-b5e6-96231b3b80d8
tools/c-index-test/CMakeLists.txt