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

OVERRIDE_FIND_PACKAGE doesn't work

Open patstew opened this issue 1 year ago • 4 comments

I think because CPM avoids calling FetchContent_MakeAvailable(?), the OVERRIDE_FIND_PACKAGE argument to FetchContent_Declare doesn't work. The redirect files don't get created.

patstew avatar Aug 23 '23 19:08 patstew

I found this issue after looking into the same thing. @TheLartians , could this get attention?

anthonyalayo avatar Dec 18 '23 06:12 anthonyalayo

Unfortunately I currently don't have the time to look into this, but would be very happy to review a PR that suggests a fix.

TheLartians avatar Jan 17 '24 07:01 TheLartians

I'm running into this bug too: a dependency requires pugixml, and even though I included it via CPMAddPackage it still claims it can't find it.

ethindp avatar Jul 21 '24 00:07 ethindp

Odd thing is that it worked fine a couple days ago, I have no idea what changed.

ethindp avatar Jul 21 '24 00:07 ethindp