From e21dfb4c42182df835cc751a67df3052e73120f3 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 17 Oct 2023 19:59:58 +1100 Subject: [PATCH] Correct comment in 5ac392ca403b1af854b2ed17105f0fe7a005c5cf --- build_files/cmake/macros.cmake | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build_files/cmake/macros.cmake b/build_files/cmake/macros.cmake index e05b70b106c..0aad121ea98 100644 --- a/build_files/cmake/macros.cmake +++ b/build_files/cmake/macros.cmake @@ -1440,6 +1440,7 @@ macro(find_python_module_file path_strip_trailing_slash(_python_root "${PYTHON_LIBPATH}") set(_python_base "${_python_root}/python${PYTHON_VERSION}") + # This always moves up one level (even if there is a trailing slash). get_filename_component(_python_root "${_python_root}" DIRECTORY) path_ensure_trailing_slash(_python_root "${_python_root}") @@ -1459,8 +1460,6 @@ macro(find_python_module_file ) if(${out_var_abs}) set(_${out_var_abs}_DEPS "${_python_mod_file_deps_test}" CACHE STRING "") - - # This always moves up one level (even if there is a trailing slash). string(LENGTH "${_python_root}" _python_root_len) string(SUBSTRING ${${out_var_abs}} ${_python_root_len} -1 ${out_var_rel}) unset(_python_root_len)