We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 299a48f commit b989d70Copy full SHA for b989d70
1 file changed
cmake/modules/hunter_pack_git_submodule.cmake
@@ -139,6 +139,9 @@ function(hunter_pack_git_submodule)
139
endif()
140
141
set(head_file "${output}")
142
+ if(NOT IS_ABSOLUTE "${head_file}")
143
+ set(head_file "${submodule_dir}/${head_file}")
144
+ endif()
145
if(NOT EXISTS "${head_file}")
146
hunter_internal_error("File not found: '${head_file}'")
147
@@ -182,6 +185,9 @@ function(hunter_pack_git_submodule)
182
185
183
186
184
187
set(ref_file "${output}")
188
+ if(NOT IS_ABSOLUTE "${ref_file}")
189
+ set(ref_file "${submodule_dir}/${ref_file}")
190
191
if(NOT EXISTS "${ref_file}")
192
hunter_internal_error("File not found: ${ref_file}")
193
0 commit comments