diff options
author | Ray Molenkamp <github@lazydodo.com> | 2022-11-05 03:09:21 +0300 |
---|---|---|
committer | Ray Molenkamp <github@lazydodo.com> | 2022-11-05 03:09:21 +0300 |
commit | de15fc7d4fd2870d8f538e62425870b35180731a (patch) | |
tree | 585c5087c19a5fa26370e436f0c85e9354da351e | |
parent | d2fa7813d1414a7ce34d141150ad672870dc8a22 (diff) |
deps: prevent _d_d for usd python extentions on windows
-rw-r--r-- | build_files/build_environment/patches/usd.diff | 15 |
1 files changed, 15 insertions, 0 deletions
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}") |