[Bf-blender-cvs] [de15fc7d4fd] tmp-vfx-platform-2023: deps: prevent _d_d for usd python extentions on windows

Ray Molenkamp noreply at git.blender.org
Sat Nov 5 01:09:31 CET 2022


Commit: de15fc7d4fd2870d8f538e62425870b35180731a
Author: Ray Molenkamp
Date:   Fri Nov 4 18:09:21 2022 -0600
Branches: tmp-vfx-platform-2023
https://developer.blender.org/rBde15fc7d4fd2870d8f538e62425870b35180731a

deps: prevent _d_d for usd python extentions on windows

===================================================================

M	build_files/build_environment/patches/usd.diff

===================================================================

diff --git a/build_files/build_environment/patches/usd.diff b/build_files/build_environment/patches/usd.diff
index 976e58a2e80..39d34160d28 100644
--- a/build_files/build_environment/patches/usd.diff
+++ b/build_files/build_environment/patches/usd.diff
@@ -99,3 +99,18 @@ diff -Naur orig/pxr/usdImaging/CMakeLists.txt external_usd/pxr/usdImaging/CMakeL
      plugin
  )
  
+diff -Naur orig/cmake/macros/Private.cmake external_usd/cmake/macros/Private.cmake
+--- orig/cmake/macros/Private.cmake     2022-02-18 14:49:09 -0700
++++ external_usd/cmake/macros/Private.cmake     2022-08-05 10:42:03 -0600
+@@ -900,8 +900,10 @@
+         return()
+     endif()
+
+-    if (WIN32 AND PXR_USE_DEBUG_PYTHON)
++    if (WIN32 AND PXR_USE_DEBUG_PYTHON AND NOT CMAKE_DEBUG_POSTFIX)
+         # On Windows when compiling with debug python the library must be named with _d.
++        # Blender: but this can be skipped if CMAKE_DEBUG_POSTFIX is set, it knows
++        # what it is doing and we don't want libraries ending in _d_d.pyd 
+         set(LIBRARY_NAME "_${NAME}_d")
+     else()
+         set(LIBRARY_NAME "_${NAME}")



More information about the Bf-blender-cvs mailing list