Skip to content

Commit

Permalink
Lowercase the variables to search
Browse files Browse the repository at this point in the history
  • Loading branch information
vyasr committed Nov 5, 2024
1 parent 8c26daa commit a8cf910
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rapids-cmake/cpm/detail/generate_patch_command.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ function(rapids_cpm_generate_patch_command package_name version patch_command)
get_default_json(${package_name} json_data)
get_override_json(${package_name} override_json_data)

get_property(json_path GLOBAL PROPERTY rapids_cpm_${package_name}_json_file)
get_property(override_json_path GLOBAL PROPERTY rapids_cpm_${package_name}_override_json_file)
string(TOLOWER "${package_name}" normalized_pkg_name)
get_property(json_path GLOBAL PROPERTY rapids_cpm_${normalized_pkg_name}_json_file)
get_property(override_json_path GLOBAL
PROPERTY rapids_cpm_${normalized_pkg_name}_override_json_file)

string(JSON json_data ERROR_VARIABLE no_default_patch GET "${json_data}" patches)
string(JSON override_json_data ERROR_VARIABLE no_override_patch GET "${override_json_data}"
Expand Down

0 comments on commit a8cf910

Please sign in to comment.