This adds the QT_ROOT_DIR environment variable that takes the place of the old Qt5_DIR and Qt6_DIR variables, and points Qt5_DIR to the location that CMake expects.
Breaking changes are documented in the README_upgrade_guide.md file.
Please be aware that this is not a bug fix. I added a CMakeLists.txt file to the test project, so that each test run can configure a test project with CMake; these tests were passing before I made any code changes. The changes here are meant to make the action easier for users to understand:
The Qt5_DIR is now given the value that it would need to have to run CMake properly, if the qmake directory had not been added to the path.
The Qt5_Dir and Qt6_DIR variables have been removed, since they have no intrinsic purpose other than to preserve the legacy interface. Removing them makes the code easier to maintain and the environment easier to understand.
This PR should not be merged into v3 of this action, owing to breaking changes.
Fix #184.
This adds the
QT_ROOT_DIR
environment variable that takes the place of the oldQt5_DIR
andQt6_DIR
variables, and pointsQt5_DIR
to the location that CMake expects.Breaking changes are documented in the
README_upgrade_guide.md
file.Please be aware that this is not a bug fix. I added a
CMakeLists.txt
file to the test project, so that each test run can configure a test project with CMake; these tests were passing before I made any code changes. The changes here are meant to make the action easier for users to understand:Qt5_DIR
is now given the value that it would need to have to run CMake properly, if the qmake directory had not been added to the path.Qt5_Dir
andQt6_DIR
variables have been removed, since they have no intrinsic purpose other than to preserve the legacy interface. Removing them makes the code easier to maintain and the environment easier to understand.This PR should not be merged into v3 of this action, owing to breaking changes.