void-packages/srcpkgs/python3-pyside2/patches/tests-correct-build_dir.patch

15 lines
617 B
Diff

Reported upstream: https://bugreports.qt.io/browse/PYSIDE-1430
--- sources/pyside2/tests/CMakeLists.txt.ORIG 2020-11-11 13:51:30.000000000 +0100
+++ sources/pyside2/tests/CMakeLists.txt 2020-11-24 11:42:34.629110123 +0100
@@ -7,8 +7,7 @@
# BUILD_DIR and QT_DIR are used by init_paths.py for setting
# the path to the testbinding module
- get_filename_component(BUILD_DIR "${CMAKE_BINARY_DIR}" DIRECTORY)
- get_filename_component(BUILD_DIR "${CMAKE_BINARY_DIR}" DIRECTORY)
+ set(BUILD_DIR "${CMAKE_BINARY_DIR}")
set(QT_DIR "${_qt5Core_install_prefix}")
macro(TEST_QT_MODULE var name)