Skip to content

Commit

Permalink
Correct style issues found by CI
Browse files Browse the repository at this point in the history
  • Loading branch information
robertmaynard committed Dec 11, 2024
1 parent 3d3647b commit 0035ba2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions docs/packages/patches_inline.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,6 @@
},
"issue": "Example of an inline patch",
"fixed_in": ""
}
]
}
5 changes: 3 additions & 2 deletions rapids-cmake/cpm/detail/convert_patch_json.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@ function(rapids_cpm_convert_patch_json)

# Figure out the file path
set(file
"${CMAKE_BINARY_DIR}/rapids-cmake/patches/${_RAPIDS_PACKAGE_NAME}/embedded_patch_${_RAPIDS_INDEX}.${type}")
"${CMAKE_BINARY_DIR}/rapids-cmake/patches/${_RAPIDS_PACKAGE_NAME}/embedded_patch_${_RAPIDS_INDEX}.${type}"
)

# Transfrom from a list of strings to a single file
# Transform from a list of strings to a single file
string(JSON content_length LENGTH "${json_content}")
math(EXPR content_length "${content_length} - 1")
unset(file_content)
Expand Down
2 changes: 1 addition & 1 deletion rapids-cmake/cpm/detail/load_preset_versions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function(rapids_cpm_load_preset_versions)
else()
set_property(GLOBAL PROPERTY rapids_cpm_${normalized_pkg_name}_json "${data}")
set_property(GLOBAL PROPERTY rapids_cpm_${normalized_pkg_name}_json_file
"${_rapids_preset_version_file}")
"${_rapids_preset_version_file}")
set_property(GLOBAL PROPERTY rapids_cpm_${normalized_pkg_name}_proper_name "${package_name}")
endif()
endforeach()
Expand Down
2 changes: 1 addition & 1 deletion rapids-cmake/cpm/detail/pinning_write_file.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function(rapids_cpm_pinning_transform_patches package_name patches_array_var out

include("${rapids-cmake-dir}/cpm/detail/convert_patch_json.cmake")

# We are p need to get the `files` key and tranform it
# We need to get the `files` key and transform it
set(json_data "${${patches_array_var}}")
string(JSON patch_count LENGTH "${json_data}")
if(patch_count GREATER_EQUAL 1)
Expand Down

0 comments on commit 0035ba2

Please sign in to comment.