-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.0.1 installs empty directories include/catch2/benchmark/internal and include/catch2/generators/internal #2457
Comments
This seems to be down to Lines 355 to 363 in d32fca4
install(DIRECTORY picks up directories that don't contain any copied files (notice the file pattern at the end).
I am not sure if this is the expected behaviour, or if CMake would be willing to change this. Either way I am willing to merge a CMake change that removes the empty dirs as a postprocessing step, but for me personally it is a very low priority change. |
It definitely is, and they're probably not. It is documented (after a fashion) in the It can be worked around, for this particular case, like so: # Install the headers
install(
DIRECTORY
"${SOURCES_DIR}"
"${CMAKE_BINARY_DIR}/generated-includes/catch2" # Also install the generated header
DESTINATION
"${CMAKE_INSTALL_INCLUDEDIR}"
FILES_MATCHING
PATTERN "*.hpp"
PATTERN "benchmark/internal" EXCLUDE
PATTERN "generators/internal" EXCLUDE
) With a couple of caveats:
|
No description provided.
The text was updated successfully, but these errors were encountered: