|
1 | 1 | # =============================================================================
|
2 |
| -# Copyright (c) 2023, NVIDIA CORPORATION. |
| 2 | +# Copyright (c) 2023-2025, NVIDIA CORPORATION. |
3 | 3 | #
|
4 | 4 | # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
|
5 | 5 | # in compliance with the License. You may obtain a copy of the License at
|
|
13 | 13 | # =============================================================================
|
14 | 14 |
|
15 | 15 | # This function finds osgeo/proj and sets any additional necessary environment variables.
|
16 |
| -function(find_and_configure_proj VERSION) |
| 16 | +function(find_and_configure_proj) |
| 17 | + include("${rapids-cmake-dir}/cpm/package_override.cmake") |
| 18 | + rapids_cpm_package_override("${CMAKE_CURRENT_FUNCTION_LIST_DIR}/../patches/proj_override.json") |
| 19 | + |
| 20 | + include("${rapids-cmake-dir}/cpm/detail/package_details.cmake") |
| 21 | + rapids_cpm_package_details(PROJ version repository tag shallow exclude) |
| 22 | + |
| 23 | + include("${rapids-cmake-dir}/cpm/detail/generate_patch_command.cmake") |
| 24 | + rapids_cpm_generate_patch_command(PROJ ${version} patch_command build_patch_only) |
| 25 | + |
17 | 26 | include(${rapids-cmake-dir}/cpm/find.cmake)
|
18 | 27 |
|
19 | 28 | # Find or install Proj
|
20 | 29 | rapids_cpm_find(
|
21 |
| - PROJ ${VERSION} |
| 30 | + PROJ ${version} ${build_patch_only} |
22 | 31 | GLOBAL_TARGETS PROJ::proj
|
23 | 32 | BUILD_EXPORT_SET cuproj-exports
|
24 | 33 | INSTALL_EXPORT_SET cuproj-exports
|
25 | 34 | CPM_ARGS
|
26 |
| - GIT_REPOSITORY https://github.com/osgeo/proj.git |
27 |
| - GIT_TAG ${VERSION} |
28 |
| - GIT_SHALLOW TRUE |
| 35 | + GIT_REPOSITORY ${repository} |
| 36 | + GIT_TAG ${tag} |
| 37 | + GIT_SHALLOW ${shallow} ${patch_command} |
29 | 38 | )
|
30 | 39 |
|
31 | 40 | if(PROJ_ADDED)
|
|
0 commit comments