File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff 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` ) ) ;
You can’t perform that action at this time.
0 commit comments