-
Notifications
You must be signed in to change notification settings - Fork 190
Description
- I've read Brief overview section and do understand basic concepts. Yes
- I've read F.A.Q. section and haven't found an answer to my question. Yes
- I've read Code of Conduct, I promise to be polite and will do my best at being constructive. Yes
Hi,
starting with CMake 3.28.0 the usage of freetype config was added in FindFreetype.cmake which reads the config of the hunter package.
After that FindFreetype.cmake tries to read some properties of the freetype target
And this results in an error 🤕
CMake Error at /opt/cmake/share/cmake-3.28/Modules/FindFreetype.cmake:108 (get_property):
get_property could not find TARGET freetype. Perhaps it has not yet been
created.
Call Stack (most recent call first):
CMakeLists.txt:12 (find_package)
The freetype library seems to provide both targets (see here and here)
while the hunter package seems to only provides freetype::freetype and Freetype::Freetype (ccp-pm/freetype) and not the freetype target.
I also provided a small project that demonstrates the issue.
My CMake knowledge is quite limited so I'm uncertain what the correct solution to this issue is. That is why I seek your help to find an appropriate soluion.
thx 😺
https://github.com/Kitware/CMake/blob/v3.28.1/Modules/FindFreetype.cmake#L100
https://github.com/Kitware/CMake/blob/v3.28.1/Modules/FindFreetype.cmake#L108
https://gitlab.freedesktop.org/freetype/freetype/-/issues/1165
https://gitlab.freedesktop.org/freetype/freetype/-/merge_requests/178
https://github.com/zerotacg/hunter-freetype-issue/tree/main
https://github.com/zerotacg/hunter-freetype-issue/actions/runs/7309580812/job/19917318519#step:3:1177