[Bf-blender-cvs] [52b32d63248] tmp_lib_update_32: Fix CMake error with clean build
Brecht Van Lommel
noreply at git.blender.org
Tue Apr 19 18:26:45 CEST 2022
Commit: 52b32d632483203c4027364ae58add5d5cc9ddc5
Author: Brecht Van Lommel
Date: Tue Apr 19 18:26:27 2022 +0200
Branches: tmp_lib_update_32
https://developer.blender.org/rB52b32d632483203c4027364ae58add5d5cc9ddc5
Fix CMake error with clean build
===================================================================
M build_files/cmake/platform/platform_old_libs_update.cmake
===================================================================
diff --git a/build_files/cmake/platform/platform_old_libs_update.cmake b/build_files/cmake/platform/platform_old_libs_update.cmake
index 8ad8b9ae854..c353797cf9d 100644
--- a/build_files/cmake/platform/platform_old_libs_update.cmake
+++ b/build_files/cmake/platform/platform_old_libs_update.cmake
@@ -13,7 +13,9 @@ function(unset_cache_variables pattern)
endfunction()
# Detect update from 3.1 to 3.2 libs.
-if(OPENEXR_VERSION AND ${OPENEXR_VERSION} VERSION_LESS "3.0.0" AND EXISTS ${LIBDIR}/imath)
+if(DEFINED OPENEXR_VERSION AND
+ OPENEXR_VERSION VERSION_LESS "3.0.0" AND
+ EXISTS ${LIBDIR}/imath)
message(STATUS "Auto updating CMake configuration for Blender 3.2 libraries")
unset_cache_variables("^OPENIMAGEIO")
More information about the Bf-blender-cvs
mailing list