CPMLicenses.cmake
CPMLicenses.cmake copied to clipboard
[BUG] CPMLicenses Fails with Folders Named `LICENSE`
I realize that this generally isn't the case in most projects, but I accidentally made it happen with a project I'm working on where I created a folder called LICENSE instead of a file and didn't realize it. When I tried to run the write-licenses build target it failed due to not being about to "read" the directory.
Hey great point, we should definetely check if the path is a real file before attempting to read it!