[CMake] Apply sandbox profile to target not directory
authorChris Bieneman <beanz@apple.com>
Sat, 19 Nov 2016 01:32:09 +0000 (01:32 +0000)
committerChris Bieneman <beanz@apple.com>
Sat, 19 Nov 2016 01:32:09 +0000 (01:32 +0000)
commit958edcbdd615c37e65e45e234112d17cdefcdbf3
tree1f8f51da8a8007d943e1487d5bc76521da4a28be
parent19270f3438d1617c16ddeb421fd5ca5a31dff983
[CMake] Apply sandbox profile to target not directory

When LLVM_DEPENDENCY_DEBUGGING=On we should apply the sandbox only on the target, not the directory. This is important for directories that create more than one target, or for nested directories.

llvm-svn: 287415
llvm/cmake/modules/AddLLVM.cmake