diff --git a/build_files/cmake/platform/platform_old_libs_update.cmake b/build_files/cmake/platform/platform_old_libs_update.cmake index 7027949e504..e146fe4e5fd 100644 --- a/build_files/cmake/platform/platform_old_libs_update.cmake +++ b/build_files/cmake/platform/platform_old_libs_update.cmake @@ -96,3 +96,11 @@ if(LIBDIR AND unset_cache_variables("^TBB") unset_cache_variables("^USD") endif() + +# Detect update to 5.0 libs. +if(UNIX AND LIBDIR AND + EXISTS ${LIBDIR}/haru/lib/libhpdf.a AND + HARU_LIBRARY MATCHES "libhpdfs.a$") + message(STATUS "Auto updating CMake configuration for Blender 5.0 libraries") + unset_cache_variables("^HARU") +endif()