Cannot use Core5Compat
Unsolved
General and Desktop
-
Whenever I add Core5Compat to my find_package in cmake I get an error.
I tried:find_package(Qt6 REQUIRED COMPONENTS Core Gui Qml Quick Core5Compat)
and
find_package(Qt6 REQUIRED COMPONENTS Core5Compat Gui Qml Quick)
but both result in
Found package configuration file QtPath/6.6.0/msvc2019_64/lib/cmake/Qt6/Qt6Config.cmake but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT FOUND. Reason given by package: Failed to find required Qt component "Core5Compat". Expected Config file at "QtPath/6.6.0/msvc2019_64/lib/cmake/Qt6Core5Compat/Qt6Core5CompatConfig.cmake" does NOT exist
-
This worked for me! Thank you.
-