Skip to content

Commit 5be1905

Browse files
committed
Update environment variables
1 parent bd8cc44 commit 5be1905

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

action/src/main.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -359,13 +359,11 @@ const run = async (): Promise<void> => {
359359
if (process.platform !== "win32") {
360360
setOrAppendEnvVar("PKG_CONFIG_PATH", nativePath(`${qtPath}/lib/pkgconfig`));
361361
}
362-
// If less than qt6, set qt5_dir variable, otherwise set qt6_dir variable
362+
// If less than qt6, set Qt5_DIR variable
363363
if (compareVersions(inputs.version, "<", "6.0.0")) {
364-
core.exportVariable("Qt5_Dir", qtPath); // Incorrect name that was fixed, but kept around so it doesn't break anything
365-
core.exportVariable("Qt5_DIR", qtPath);
366-
} else {
367-
core.exportVariable("Qt6_DIR", qtPath);
364+
core.exportVariable("Qt5_DIR", nativePath(`${qtPath}/lib/cmake`));
368365
}
366+
core.exportVariable("QT_ROOT_DIR", qtPath);
369367
core.exportVariable("QT_PLUGIN_PATH", nativePath(`${qtPath}/plugins`));
370368
core.exportVariable("QML2_IMPORT_PATH", nativePath(`${qtPath}/qml`));
371369
core.addPath(nativePath(`${qtPath}/bin`));

0 commit comments

Comments
 (0)