Skip to content

Commit f8fd98f

Browse files
committed
perf: update ss-cmake to 0.0.18
Signed-off-by: l.feng <43399351+msclock@users.noreply.github.com>
1 parent b2575e6 commit f8fd98f

9 files changed

Lines changed: 11 additions & 15 deletions

File tree

cmake/presets/triplets/x64-mingw-dynamic.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"x64"
1212
],
1313
"cacheVariables": {
14-
"VCPKG_TARGET_TRIPLET": "x64-mingw-dynamic"
14+
"VCPKG_TARGET_TRIPLET": "x64-mingw-dynamic",
15+
"VCPKG_HOST_TRIPLET": "x64-mingw-dynamic"
1516
}
1617
}
1718
]

cmake/presets/triplets/x64-mingw-static.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"x64"
1212
],
1313
"cacheVariables": {
14-
"VCPKG_TARGET_TRIPLET": "x64-mingw-static"
14+
"VCPKG_TARGET_TRIPLET": "x64-mingw-static",
15+
"VCPKG_HOST_TRIPLET": "x64-mingw-static"
1516
}
1617
}
1718
]

cmake/presets/x64-mingw-dynamic-windows-mingw.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
"mingw",
1616
"x64-mingw-dynamic"
1717
]
18-
1918
}
2019
],
2120
"buildPresets": [

cmake/vcpkg/bootstrap/vcpkg_bootstrap.cmake

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,6 @@ function(_vcpkg_upgrade vcpkg_root vcpkg_repo vcpkg_ref)
119119
OUTPUT_VARIABLE safe_directory
120120
OUTPUT_STRIP_TRAILING_WHITESPACE
121121
RESULT_VARIABLE result)
122-
123-
if(NOT result EQUAL "0")
124-
message(FATAL_ERROR "failed to get git safe directory")
125-
endif()
126122
endif()
127123

128124
if(NOT DEFINED safe_directory
@@ -131,6 +127,7 @@ function(_vcpkg_upgrade vcpkg_root vcpkg_repo vcpkg_ref)
131127

132128
execute_process(
133129
COMMAND ${GIT_EXECUTABLE} config --global safe.directory ${vcpkg_root}
130+
--append
134131
WORKING_DIRECTORY ${vcpkg_root}
135132
RESULT_VARIABLE result)
136133

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
2-
_commit: v0.0.16
2+
_commit: v0.0.18
33
_src_path: https://github.com/serious-scaffold/ss-cmake

template/cmake/presets/triplets/x64-mingw-dynamic.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"x64"
1212
],
1313
"cacheVariables": {
14-
"VCPKG_TARGET_TRIPLET": "x64-mingw-dynamic"
14+
"VCPKG_TARGET_TRIPLET": "x64-mingw-dynamic",
15+
"VCPKG_HOST_TRIPLET": "x64-mingw-dynamic"
1516
}
1617
}
1718
]

template/cmake/presets/triplets/x64-mingw-static.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"x64"
1212
],
1313
"cacheVariables": {
14-
"VCPKG_TARGET_TRIPLET": "x64-mingw-static"
14+
"VCPKG_TARGET_TRIPLET": "x64-mingw-static",
15+
"VCPKG_HOST_TRIPLET": "x64-mingw-static"
1516
}
1617
}
1718
]

template/cmake/presets/x64-mingw-dynamic-windows-mingw.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
"mingw",
1616
"x64-mingw-dynamic"
1717
]
18-
1918
}
2019
],
2120
"buildPresets": [

template/cmake/vcpkg/bootstrap/vcpkg_bootstrap.cmake

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,6 @@ function(_vcpkg_upgrade vcpkg_root vcpkg_repo vcpkg_ref)
119119
OUTPUT_VARIABLE safe_directory
120120
OUTPUT_STRIP_TRAILING_WHITESPACE
121121
RESULT_VARIABLE result)
122-
123-
if(NOT result EQUAL "0")
124-
message(FATAL_ERROR "failed to get git safe directory")
125-
endif()
126122
endif()
127123

128124
if(NOT DEFINED safe_directory
@@ -131,6 +127,7 @@ function(_vcpkg_upgrade vcpkg_root vcpkg_repo vcpkg_ref)
131127

132128
execute_process(
133129
COMMAND ${GIT_EXECUTABLE} config --global safe.directory ${vcpkg_root}
130+
--append
134131
WORKING_DIRECTORY ${vcpkg_root}
135132
RESULT_VARIABLE result)
136133

0 commit comments

Comments
 (0)