リビジョン | 105c0ba0ba114018f26ccc8d13770e32e27183f6 (tree) |
---|---|
日時 | 2022-11-19 23:20:25 |
作者 | Fs <Fsu0413@vip....> |
コミッター | Fs |
全TM弄错了
@@ -84,8 +84,11 @@ Set Qt6Dependencies_cmakeold = fso.OpenTextFile(PATH_TO_TARGET & "\lib\cmake\Qt6 | ||
84 | 84 | |
85 | 85 | Do until Qt6Dependencies_cmakeold.AtEndOfStream |
86 | 86 | line = Qt6Dependencies_cmakeold.ReadLine |
87 | - If Left(Trim(line), 38) = "set(__qt_platform_initial_qt_host_path" Then line = "set(__qt_platform_initial_qt_host_path ""${Qt6_DIR}/../../../host"")" | |
88 | - If Left(Trim(line), 48) = "set(__qt_platform_initial_qt_host_path_cmake_dir" Then line = "set(__qt_platform_initial_qt_host_path_cmake_dir ""${Qt6_DIR}/../../../host/lib/cmake"")" | |
87 | + If Left(Trim(line), 48) = "set(__qt_platform_initial_qt_host_path_cmake_dir" Then | |
88 | + line = "set(__qt_platform_initial_qt_host_path_cmake_dir ""${Qt6_DIR}/../../../host/lib/cmake"")" | |
89 | + ElseIf Left(Trim(line), 38) = "set(__qt_platform_initial_qt_host_path" Then | |
90 | + line = "set(__qt_platform_initial_qt_host_path ""${Qt6_DIR}/../../../host"")" | |
91 | + End if | |
89 | 92 | Qt6Dependencies_cmake.WriteLine line |
90 | 93 | Loop |
91 | 94 |
@@ -104,13 +107,12 @@ Set qt_toolchain_cmakeold = fso.OpenTextFile(PATH_TO_TARGET & "\lib\cmake\Qt6\qt | ||
104 | 107 | |
105 | 108 | Do until qt_toolchain_cmakeold.AtEndOfStream |
106 | 109 | line = qt_toolchain_cmakeold.ReadLine |
107 | - If Left(Trim(line), 38) = "set(__qt_platform_initial_qt_host_path" Then | |
108 | - line = "set(__qt_platform_initial_qt_host_path ""${CMAKE_CURRENT_LIST_DIR}/../../../host"")" | |
109 | - qt_toolchain_cmakeold.ReadLine ' Qt 6.2.4 intentionally put the path to next line. It should be skipped. | |
110 | - End If | |
111 | 110 | If Left(Trim(line), 48) = "set(__qt_platform_initial_qt_host_path_cmake_dir" Then |
112 | 111 | line = "set(__qt_platform_initial_qt_host_path_cmake_dir ""${CMAKE_CURRENT_LIST_DIR}/../../../host/lib/cmake"")" |
113 | 112 | qt_toolchain_cmakeold.ReadLine |
113 | + ElseIf Left(Trim(line), 38) = "set(__qt_platform_initial_qt_host_path" Then | |
114 | + line = "set(__qt_platform_initial_qt_host_path ""${CMAKE_CURRENT_LIST_DIR}/../../../host"")" | |
115 | + qt_toolchain_cmakeold.ReadLine ' Qt 6.2.4 intentionally put the path to next line. It should be skipped. | |
114 | 116 | End If |
115 | 117 | qt_toolchain_cmake.WriteLine line |
116 | 118 | Loop |