Conflicting targets

Hello!

I am attempting to build QT 6.4.3 from git and am hitting an issue as described here. Seems qtlocation with this release tag is broken. I tried to use -DALLOW_DUPLICATE_CUSTOM_TARGETS=TRUE but with no avail. If I pass -skip qtlocation, the configure script works without issue. Does anyone have any other ideas on how to resolve this issue?

I have two different environments, one that has this issue and one that does not. I thought it was an issue with different versions of cmake, but after updating the env with the issue, the issue persists. Otherwise, I havent been able to track down what the difference is.

This seems like a Qt problem. AFAIK, there’s nothing CMake does to allow for duplicate target names.

Cc: @craig.scott