Fix: Make CMake files compatible with CMake 3.10

The `cmake_path()` function was introduced in CMake 3.20,
while our minimum supported version is 3.10.

In practice this fixes compilation error API docs.

Pull Request: https://projects.blender.org/blender/blender/pulls/130447
This commit is contained in:
Sergey Sharybin
2024-11-18 12:32:17 +01:00
committed by Sergey Sharybin
parent cf39bd3704
commit 8467e05036

View File

@@ -1172,7 +1172,7 @@ add_subdirectory(collada)
# Linux Release sainty checks
if(WITH_LINUX_OFFICIAL_RELEASE_TESTS)
cmake_path(GET TEST_BLENDER_EXE PARENT_PATH release_root_folder)
get_filename_component(release_root_folder ${TEST_BLENDER_EXE} DIRECTORY)
add_python_test(
linux_release_sanity_checks
${CMAKE_SOURCE_DIR}/tools/check_blender_release/check_release.py