Hennadii Chernyshchyk
Hennadii Chernyshchyk
> It's trying to search for Qt5 for some reason. Clearly CMake can't find Qt5 for you.
Then you maybe want to set `QT_MAJOR` to `6`? https://github.com/Skycoder42/QHotkey/blob/1114df5081f2cda334531ac664c7434c13dccfe6/CMakeLists.txt#L11
> Erm... how do I do that though? Since that's in the github repo How about to put `set(QT_MAJOR 6)` in your CMakeLists.txt before including QHotkey?
Are you aware that you should put it before `FetchContent_MakeAvailable`?
Or try this one: `set(QT_MAJOR 6 CACHE STRING "Use Qt6") `
Have you tried clearing the cache?
No, I mean `CMakeCache.txt`.
I don't have much information to understand what are you trying. But you need to find a way to override this variable.
> The default qt script uses the variable called QT_VERSION_MAJOR so it doesn't make sense why I need this one. Because this won't work with old Qt versions. > And...
> This is an issue I want to address with the idea of a common library with a C interface (implementation would have to be C/C++/ObjC anyway). Sounds like a...