Skip to content

Commit

Permalink
python: Temporarily disable tests in static builds on Windows
Browse files Browse the repository at this point in the history
These tests currently fail to build due to symbol export issues
on static builds. Tests in this configuration are nice to have
but not critical, since we don't build Python modules in static
builds anyway.

(If that's the case, you might wonder why we build this library
at all. See change 2339975 for answers.)

(Internal change: 2343231)
  • Loading branch information
sunyab authored and pixar-oss committed Oct 2, 2024
1 parent 0900db8 commit 1bb0071
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pxr/external/boost/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,12 @@ if (NOT PXR_BUILD_TESTS)
return()
endif()

# XXX:
# Disable tests in static builds due to symbol export issues.
if(WIN32 AND NOT TARGET shared_libs)
return()
endif()

####
# Helper functions for unit tests
####
Expand Down

0 comments on commit 1bb0071

Please sign in to comment.