File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -904,6 +904,7 @@ function setup_cmake($skipOS = $false, $scope = 'local') {
904
904
else {
905
905
& " $cmake_pkg_path " ' --skip-license' ' --prefix=/usr/local' 1> $null 2> $null
906
906
}
907
+ if (! $? ) { Remove-Item $cmake_pkg_path - Force }
907
908
}
908
909
909
910
$cmake_prog , $_ = find_prog - name ' cmake' - path $cmake_bin - silent $true
Original file line number Diff line number Diff line change @@ -20,10 +20,16 @@ function(_1kfetch_init)
20
20
set (_1kfetch_manifest "${_1kfetch_manifest} " CACHE STRING "" FORCE )
21
21
endif ()
22
22
23
+ if (NOT EXISTS ${PWSH_PROG} ) # try again
24
+ unset (PWSH_PROG CACHE )
25
+ find_program (PWSH_PROG NAMES pwsh powershell NO_PACKAGE_ROOT_PATH NO_CMAKE_PATH NO_CMAKE_ENVIRONMENT_PATH NO_CMAKE_SYSTEM_PATH NO_CMAKE_FIND_ROOT_PATH )
26
+ endif ()
27
+
23
28
execute_process (COMMAND ${PWSH_PROG} ${CMAKE_CURRENT_FUNCTION_LIST_DIR} /resolv-uri.ps1
24
29
-name "1kdist"
25
30
-manifest ${_1kfetch_manifest}
26
31
OUTPUT_VARIABLE _1kdist_url
32
+ RESULT_VARIABLE _1kdist_error
27
33
)
28
34
29
35
if (_1kdist_url )
@@ -33,7 +39,7 @@ function(_1kfetch_init)
33
39
set (_1kdist_base_url "${_1kdist_base_url} /${_1kdist_ver} " PARENT_SCOPE )
34
40
set (_1kdist_ver ${_1kdist_ver} PARENT_SCOPE )
35
41
else ()
36
- message (WARNING "Resolve 1kdist uri fail, the _1kfetch_dist will not work" )
42
+ message (WARNING "Resolve 1kdist uri fail, ${_1kdist_error} , the _1kfetch_dist will not work" )
37
43
endif ()
38
44
endfunction ()
39
45
Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ Foreach ($lib_name in $libs) {
222
222
$patches = Get-ChildItem (Split-Path $patch_script - Parent) - Filter ' *.patch'
223
223
foreach ($patch_file in $patches ) {
224
224
println " apply patch: $patch_file "
225
- git - C $lib_src apply -- verbose $patch_file
225
+ git - C $lib_src apply -- verbose -- ignore - whitespace $patch_file
226
226
}
227
227
}
228
228
You can’t perform that action at this time.
0 commit comments