You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
;; Maybe the preset or any parent preset has no binaryDir set, or
171
+
;; maybe a parent preset is missing. We need to warn the user and than
172
+
;; we try using the manually set build dir instead
173
+
(warn
174
+
"Could not determine build folder from preset '%s'.\n - Maybe the preset and none of its parent presets has the 'binaryDir' field, or a parent preset is missing."
175
+
(ci--get-preset-name configure-preset))
176
+
(if-let* ((build-dir (ci--get-build-dir-if-set)))
177
+
(progn
178
+
(warn"Using manually set build folder: '%s'" build-dir)
179
+
build-dir)
180
+
(error
181
+
"Build folder could not be determined from preset '%s' and no manual build folder is set"
182
+
(ci--get-preset-name configure-preset))))))
183
+
184
+
138
185
(defunci-get-build-folder ()
139
186
"Get the project build folder.
140
187
@@ -151,22 +198,8 @@ resolved against the project root."
;; Maybe the preset or any parent preset has no binaryDir set, or
158
-
;; maybe a parent preset is missing. We need to warn the user and than
159
-
;; we try using the manually set build dir instead
160
-
(warn
161
-
"Could not determine build folder from preset '%s'.\n - Maybe the preset and none of its parent presets has the 'binaryDir' field, or a parent preset is missing."
162
-
(ci--get-preset-name preset))
163
-
(if-let* ((build-dir (ci--get-build-dir-if-set)))
164
-
(progn
165
-
(warn"Using manually set build folder: '%s'" build-dir)
166
-
build-dir)
167
-
(error
168
-
"Build folder could not be determined from preset '%s' and no manual build folder is set"
0 commit comments