Revert "fixes duplicate header installation"

This reverts commit 0bd40d6c3da6719fecf77038673d453ff1eab25b.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@210857 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 723ac12..dd36b61 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -123,9 +123,13 @@
       message(FATAL_ERROR "Failed to find ${fpath}")
     endif()
   endforeach()
+  add_custom_target(abilib_headers DEPENDS ${LIBCXX_CXX_ABI_DEPS})
+  set(LIBCXX_CXX_ABI_DEPS abilib_headers)
   include_directories("${CMAKE_BINARY_DIR}/include")
-  install(FILES ${LIBCXX_CXX_ABI_DEPS}
+  install(DIRECTORY "${CMAKE_BINARY_DIR}/include/"
     DESTINATION include/c++/v1
+    FILES_MATCHING
+    PATTERN "*"
     )
 endmacro()