diff --git a/rapids-cmake/cpm/detail/generate_patch_command.cmake b/rapids-cmake/cpm/detail/generate_patch_command.cmake index 313c1c93..ee067bbf 100644 --- a/rapids-cmake/cpm/detail/generate_patch_command.cmake +++ b/rapids-cmake/cpm/detail/generate_patch_command.cmake @@ -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}"