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
pull/705/head
Po-Chuan Hsieh 5 years ago committed by GitHub
parent 2069dc796a
commit 8faf20461f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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

Loading…
Cancel
Save