Fix SSL cert file path not working on second cmake configure
Always create the non-cached relatve from the cached absolute path. Ref #102300
This commit is contained in:
parent
be477f069c
commit
3a483004c8
|
@ -1460,12 +1460,15 @@ macro(find_python_module_file
|
||||||
)
|
)
|
||||||
if(${out_var_abs})
|
if(${out_var_abs})
|
||||||
set(_${out_var_abs}_DEPS "${_python_mod_file_deps_test}" CACHE STRING "")
|
set(_${out_var_abs}_DEPS "${_python_mod_file_deps_test}" CACHE STRING "")
|
||||||
string(LENGTH "${_python_root}" _python_root_len)
|
|
||||||
string(SUBSTRING ${${out_var_abs}} ${_python_root_len} -1 ${out_var_rel})
|
|
||||||
unset(_python_root_len)
|
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(${out_var_abs})
|
||||||
|
string(LENGTH "${_python_root}" _python_root_len)
|
||||||
|
string(SUBSTRING ${${out_var_abs}} ${_python_root_len} -1 ${out_var_rel})
|
||||||
|
unset(_python_root_len)
|
||||||
|
endif()
|
||||||
|
|
||||||
unset(_python_mod_file_deps_test)
|
unset(_python_mod_file_deps_test)
|
||||||
unset(_python_base)
|
unset(_python_base)
|
||||||
unset(_python_root)
|
unset(_python_root)
|
||||||
|
|
Loading…
Reference in New Issue