From 8faf20461f6ad0f99d23270067fb28234f224ad9 Mon Sep 17 00:00:00 2001 From: Po-Chuan Hsieh Date: Wed, 3 Jun 2020 02:18:31 +0800 Subject: Exclude empty directories (#697) install(DIRECTORY...) creates all directories. If there's is no matching files, it becomes an empty directory. The three empty directories are absl/copts, absl/strings/testdata and absl/time/internal/cctz/testdata. It is a workaround as cmake does not have an option to exclude empty directories. Reference: https://gitlab.kitware.com/cmake/cmake/-/issues/19189 --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index c654c892..c406616b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -172,5 +172,7 @@ if(ABSL_ENABLE_INSTALL) FILES_MATCHING PATTERN "*.inc" PATTERN "*.h" + PATTERN "copts" EXCLUDE + PATTERN "testdata" EXCLUDE ) endif() # ABSL_ENABLE_INSTALL -- cgit v1.2.3