CPMLicenses.cmake icon indicating copy to clipboard operation
CPMLicenses.cmake copied to clipboard

[BUG] CPMLicenses Fails with Folders Named `LICENSE`

Open DeveloperPaul123 opened this issue 4 years ago • 1 comments

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.

DeveloperPaul123 avatar Sep 16 '21 18:09 DeveloperPaul123

Hey great point, we should definetely check if the path is a real file before attempting to read it!

TheLartians avatar Sep 16 '21 21:09 TheLartians