Skip to content

[v4] Fix Qt5_DIR environment variable#190

Merged
jurplel merged 5 commits intojurplel:masterfrom
ddalcino:topic/fix-qt5_dir-env-var
May 13, 2023
Merged

[v4] Fix Qt5_DIR environment variable#190
jurplel merged 5 commits intojurplel:masterfrom
ddalcino:topic/fix-qt5_dir-env-var

Conversation

@ddalcino
Copy link
Copy Markdown
Contributor

@ddalcino ddalcino commented May 9, 2023

Fix #184.

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.

@ddalcino ddalcino marked this pull request as ready for review May 9, 2023 03:30
@jurplel jurplel merged commit 6f7dd7e into jurplel:master May 13, 2023
@ddalcino ddalcino deleted the topic/fix-qt5_dir-env-var branch September 9, 2023 19:57
Chocobo1 added a commit to qbittorrent/qBittorrent that referenced this pull request Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

What's the purpose of Qt5_DIR environment?

2 participants