Skip to content

Commit

Permalink
chore(deps): update dependency https://github.com/serious-scaffold/ss…
Browse files Browse the repository at this point in the history
…-cmake to v0.0.10
  • Loading branch information
serious-scaffold[bot] authored Jan 2, 2025
1 parent 931c771 commit 0527e56
Show file tree
Hide file tree
Showing 8 changed files with 82 additions and 83 deletions.
2 changes: 1 addition & 1 deletion template/.copier-answers.ss-cmake.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
_commit: v0.0.7
_commit: v0.0.10
_src_path: https://github.com/serious-scaffold/ss-cmake
80 changes: 43 additions & 37 deletions template/cmake/presets/base.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,63 +5,68 @@
"toolchains/vcpkg.json"
],
"configurePresets": [
{
"name": "base-common",
"hidden":true,
"binaryDir":"${sourceDir}/out/build/${presetName}",
"installDir":"${sourceDir}/out/install/${presetName}",
"cacheVariables":{
"CMAKE_COMPILE_WARNING_AS_ERROR":false,
"CMAKE_EXPORT_COMPILE_COMMANDS":true,
"CMAKE_VERBOSE_MAKEFILE":"FALSE"
}
},
{
"name": "base",
"hidden": true,
"inherits": [
"base-common",
"ninja",
"vcpkg"
],
"binaryDir": "${sourceDir}/out/build/${presetName}",
"installDir": "${sourceDir}/out/install/${presetName}",
"cacheVariables": {
"CMAKE_EXPORT_COMPILE_COMMANDS": true,
"CMAKE_COMPILE_WARNING_AS_ERROR": false,
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_VERBOSE_MAKEFILE": "FALSE"
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "base-config",
"hidden": true,
"inherits": [
"base-common",
"ninja-config",
"vcpkg"
],
"binaryDir": "${sourceDir}/out/build/${presetName}",
"installDir": "${sourceDir}/out/install/${presetName}",
"cacheVariables": {
"CMAKE_EXPORT_COMPILE_COMMANDS": true,
"CMAKE_COMPILE_WARNING_AS_ERROR": false,
"CMAKE_VERBOSE_MAKEFILE": "FALSE"
}
]
}
],
"buildPresets": [
{
"name": "base",
"hidden": true,
"inherits": "ninja",
"configurePreset": "base"
},
{
"name": "base-config-debug",
"hidden": true,
"configurePreset": "base-config",
"configuration": "Debug"
},
{
"name": "base-config-relwithdebinfo",
"hidden": true,
"inherits": "ninja-config-relwithdebinfo",
"configurePreset": "base-config"
"configurePreset": "base-config",
"configuration": "RelWithDebInfo"
},
{
"name": "base-config-debug",
"name": "base-config-release",
"hidden": true,
"inherits": "ninja-config-debug",
"configurePreset": "base-config"
"configurePreset": "base-config",
"configuration": "Release"
}
],
"testPresets": [
{
"name": "base",
"hidden": true,
"inherits": "ninja",
"configurePreset": "base",
"output": {
"outputOnFailure": true
Expand All @@ -74,28 +79,29 @@
{
"name": "base-config-relwithdebinfo",
"hidden": true,
"inherits": "ninja-config-relwithdebinfo",
"inherits": [
"base"
],
"configurePreset": "base-config",
"output": {
"outputOnFailure": true
},
"execution": {
"noTestsAction": "error",
"stopOnFailure": true
}
"configuration": "RelWithDebInfo"
},
{
"name": "base-config-debug",
"hidden": true,
"inherits": "ninja-config-debug",
"inherits": [
"base"
],
"configurePreset": "base-config",
"output": {
"outputOnFailure": true
},
"execution": {
"noTestsAction": "error",
"stopOnFailure": true
}
"configuration": "Debug"
},
{
"name": "base-config-release",
"hidden": true,
"inherits": [
"base"
],
"configurePreset": "base-config",
"configuration": "Release"
}
]
}
10 changes: 10 additions & 0 deletions template/cmake/presets/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@
"name": "default-config-debug",
"inherits": "base-config-debug",
"configurePreset": "default-config"
},
{
"name": "default-config-release",
"inherits": "base-config-release",
"configurePreset": "default-config"
}
],
"testPresets": [
Expand All @@ -49,6 +54,11 @@
"name": "default-config-debug",
"inherits": "base-config-debug",
"configurePreset": "default-config"
},
{
"name": "default-config-release",
"inherits": "base-config-release",
"configurePreset": "default-config"
}
]
}
38 changes: 0 additions & 38 deletions template/cmake/presets/generators/ninja.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,43 +11,5 @@
"hidden": true,
"generator": "Ninja Multi-Config"
}
],
"buildPresets": [
{
"name": "ninja",
"hidden": true,
"configurePreset": "ninja"
},
{
"name": "ninja-config-relwithdebinfo",
"hidden": true,
"configurePreset": "ninja-config",
"configuration": "RelWithDebInfo"
},
{
"name": "ninja-config-debug",
"hidden": true,
"configurePreset": "ninja-config",
"configuration": "Debug"
}
],
"testPresets": [
{
"name": "ninja",
"hidden": true,
"configurePreset": "ninja"
},
{
"name": "ninja-config-relwithdebinfo",
"hidden": true,
"configurePreset": "ninja-config",
"configuration": "RelWithDebInfo"
},
{
"name": "ninja-config-debug",
"hidden": true,
"configurePreset": "ninja-config",
"configuration": "Debug"
}
]
}
4 changes: 4 additions & 0 deletions template/cmake/vcpkg/bootstrap/vcpkg_bootstrap.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,10 @@ function(_vcpkg_bootstrap)
"${arg_UNPARSED_ARGUMENTS}")
endif()

if(NOT DEFINED arg_REPO)
set(arg_REPO https://github.com/microsoft/vcpkg.git)
endif()

find_package(Git QUIET REQUIRED)

if(DEFINED CACHE{_VCPKG_ROOT})
Expand Down
13 changes: 8 additions & 5 deletions template/cmake/vcpkg/bootstrap/vcpkg_load_triplet.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -207,19 +207,22 @@ macro(_vcpkg_load_triplet)
set(_community_triplet "triplets/community/${VCPKG_TARGET_TRIPLET}.cmake")

if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/${_triplet}")
include("${CMAKE_CURRENT_LIST_DIR}/${_triplet}")
set(_load_triplet "${CMAKE_CURRENT_LIST_DIR}/${_triplet}")
elseif(EXISTS "${_VCPKG_ROOT}/${_triplet}")
include("${_VCPKG_ROOT}/${_triplet}")
elseif(EXISTS "${CMAKE_CURRENT_LIST_DIR}/${_community_triplet}")
include("${CMAKE_CURRENT_LIST_DIR}/${_community_triplet}")
set(_load_triplet "${_VCPKG_ROOT}/${_triplet}")
elseif(EXISTS "${_VCPKG_ROOT}/${_community_triplet}")
include("${_VCPKG_ROOT}/${_community_triplet}")
set(_load_triplet "${_VCPKG_ROOT}/${_community_triplet}")
else()
message(
FATAL_ERROR
"Triplet ${VCPKG_TARGET_TRIPLET} not found at ${CMAKE_CURRENT_LIST_DIR}/${_triplet} or ${_VCPKG_ROOT}/${_triplet}"
)
endif()

message(STATUS "Loading triplet: ${_load_triplet}")
include(${_load_triplet})

unset(_triplet)
unset(_community_triplet)
unset(_load_triplet)
endmacro(_vcpkg_load_triplet)
3 changes: 1 addition & 2 deletions template/cmake/vcpkg/vcpkg.toolchain.cmake.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,4 @@ set(VCPKG_VERBOSE

file(READ ${CMAKE_SOURCE_DIR}/vcpkg.json _vcpkg_json)
string(JSON _builtin_baseline GET ${_vcpkg_json} builtin-baseline)
vcpkg_configure(CACHE_DIR_NAME {{ ss_cmake_repo_name}} REPO
https://github.com/microsoft/vcpkg.git REF ${_builtin_baseline})
vcpkg_configure(CACHE_DIR_NAME {{ ss_cmake_repo_name}} REF ${_builtin_baseline})
15 changes: 15 additions & 0 deletions template/vcpkg.json.jinja
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
[%- from pathjoin("includes", "variable.jinja") import repo_url with context -%]
{
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
<<<<<<< before updating
"name": "{{ repo_name }}",
"description": "{{ project_description }}",
"builtin-baseline": "4b6c50d962cc20aaa3ef457f8ba683b586263cfb",
"homepage": "https://{{ repo_url() }}",
=======
"name": "{{ ss_cmake_repo_name }}",
"description": "{{ ss_cmake_project_description }}",
"builtin-baseline": "2dc91c6439568f694052c3fa25859dc78d9ff8e4",
"homepage": "https://{{ ss_cmake_repo_url }}",
>>>>>>> after updating
"dependencies": [
[%- if compiled == true %]
"pybind11",
Expand Down Expand Up @@ -42,8 +49,12 @@
{
"name": "cmake-modules",
"version": "1.6.11"
<<<<<<< before updating
}
[%- if compiled == true %],
=======
},
>>>>>>> after updating
{
"name": "robotology-cmake-ycm",
"version": "0.16.3"
Expand All @@ -54,7 +65,11 @@
"registries": [
{
"kind": "git",
<<<<<<< before updating
"baseline": "e5e9b32228141212c78eace81718ca9894055b7b",
=======
"baseline": "09ae1472980f5e2132654900bb48061444b1cea5",
>>>>>>> after updating
"repository": "https://github.com/msclock/cmake-registry",
"packages": [
[%- if ss_cmake_use_conan == true %]
Expand Down

0 comments on commit 0527e56

Please sign in to comment.