File tree Expand file tree Collapse file tree 7 files changed +13
-14
lines changed Expand file tree Collapse file tree 7 files changed +13
-14
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ include(${_project_options_SOURCE_DIR}/Index.cmake)
77
77
# install vcpkg dependencies: - should be called before defining project()
78
78
run_vcpkg(
79
79
VCPKG_URL "https://github.com/microsoft/vcpkg.git"
80
- VCPKG_REV "10e052511428d6b0c7fcc63a139e8024bb146032 "
80
+ VCPKG_REV "86a181505ac6460f98496a79abdee6a0f49905ec "
81
81
)
82
82
# Install conan dependencies: - should be called before defining project()
83
83
run_conan()
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ include(${_project_options_SOURCE_DIR}/Index.cmake)
30
30
# install vcpkg dependencies: - should be called before defining project()
31
31
run_vcpkg(
32
32
VCPKG_URL "https://github.com/microsoft/vcpkg.git"
33
- VCPKG_REV "10e052511428d6b0c7fcc63a139e8024bb146032 "
33
+ VCPKG_REV "86a181505ac6460f98496a79abdee6a0f49905ec "
34
34
)
35
35
# Install conan dependencies: - should be called before defining project()
36
36
run_conan()
Original file line number Diff line number Diff line change @@ -319,13 +319,16 @@ function(git_add_remote)
319
319
320
320
find_program (GIT_EXECUTABLE "git" REQUIRED )
321
321
322
- # ensure that the given repository's remote is the current remote
322
+ # Get the list of the remotes
323
323
execute_process (
324
324
COMMAND "${GIT_EXECUTABLE} " "remote" "-v" WORKING_DIRECTORY "${_fun_REPOSITORY_PATH} "
325
325
COMMAND_ERROR_IS_FATAL LAST
326
326
OUTPUT_VARIABLE _remote_output
327
327
)
328
- string (FIND "${_remote_output} " "${_fun_REMOTE_URL} " _find_index )
328
+ # Remove .git from the URL
329
+ string (REGEX REPLACE "^(.*)\. git$" "\\ 1" _fun_REMOTE_URL_no_git "${_fun_REMOTE_URL} " )
330
+ # Check if the given remote already exists in the remote list
331
+ string (FIND "${_remote_output} " "${_fun_REMOTE_URL_no_git} " _find_index )
329
332
330
333
# Add the given remote if it doesn't exist
331
334
if (${_find_index} EQUAL -1 )
@@ -343,12 +346,8 @@ function(git_add_remote)
343
346
endif ()
344
347
345
348
execute_process (
346
- COMMAND "${GIT_EXECUTABLE} " "remote" "add" "${_fun_REMOTE_NAME} " "${_fun_REMOTE_URL} "
347
- WORKING_DIRECTORY "${_fun_REPOSITORY_PATH} " COMMAND_ERROR_IS_FATAL LAST
348
- )
349
- execute_process (
350
- COMMAND "${GIT_EXECUTABLE} " "fetch" "${_fun_REMOTE_NAME} " WORKING_DIRECTORY "${_fun_REPOSITORY_PATH} "
351
- COMMAND_ERROR_IS_FATAL LAST
349
+ COMMAND "${GIT_EXECUTABLE} " "remote" "add" "--fetch" "${_fun_REMOTE_NAME} " "${_fun_REMOTE_URL} "
350
+ WORKING_DIRECTORY "${_fun_REPOSITORY_PATH} "
352
351
)
353
352
endif ()
354
353
endfunction ()
Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ Or by specifying the options
170
170
171
171
run_vcpkg(
172
172
VCPKG_URL "https://github.com/microsoft/vcpkg.git"
173
- VCPKG_REV "10e052511428d6b0c7fcc63a139e8024bb146032 "
173
+ VCPKG_REV "86a181505ac6460f98496a79abdee6a0f49905ec "
174
174
ENABLE_VCPKG_UPDATE
175
175
)
176
176
Original file line number Diff line number Diff line change 2
2
"$schema" : " https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json" ,
3
3
"name" : " another-project" ,
4
4
"version-string" : " 0.1.0" ,
5
- "builtin-baseline" : " 10e052511428d6b0c7fcc63a139e8024bb146032 " ,
5
+ "builtin-baseline" : " 86a181505ac6460f98496a79abdee6a0f49905ec " ,
6
6
"dependencies" : [
7
7
{
8
8
"name" : " eigen3" ,
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ if(ENABLE_CROSS_COMPILING)
18
18
endif ()
19
19
20
20
run_vcpkg (VCPKG_URL "https://github.com/microsoft/vcpkg.git" VCPKG_REV
21
- "10e052511428d6b0c7fcc63a139e8024bb146032 " ENABLE_VCPKG_UPDATE
21
+ "86a181505ac6460f98496a79abdee6a0f49905ec " ENABLE_VCPKG_UPDATE
22
22
)
23
23
run_conan ()
24
24
Original file line number Diff line number Diff line change 2
2
"$schema" : " https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json" ,
3
3
"name" : " myproject" ,
4
4
"version-string" : " 0.1.0" ,
5
- "builtin-baseline" : " 10e052511428d6b0c7fcc63a139e8024bb146032 " ,
5
+ "builtin-baseline" : " 86a181505ac6460f98496a79abdee6a0f49905ec " ,
6
6
"dependencies" : [
7
7
{
8
8
"name" : " eigen3" ,
You can’t perform that action at this time.
0 commit comments