diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2017-05-24 18:50:44 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2017-07-12 12:44:47 +0000 |
commit | 5337435edaa10518c4495d480f934e87b2ccd444 (patch) | |
tree | 9d4d876f0b9c163721dba1210de008045af6559f /sources/pyside2/tests/pysidetest/CMakeLists.txt | |
parent | 8ae4d5827d1ccd463b99aaf54c2e8cb482094c91 (diff) |
Fix Windows module extensions and tests to work with --debug build
Use the same imp.get_suffixes() mechanism as on Unix, to determine
the suffix part of module extension files.
This fixes debug builds to work on Windows.
Note that the whole build stack has to use the same configuration,
no mixing is allowed on Windows.
For release build you need: python.exe + setup.py without --debug
flag + release build of Qt5.
For debug build you need: python_d.exe + setup.py with --debug
flag + debug build of Qt5.
Change-Id: I6188c859b5757d11e87d6a9e32b9ba558f7f609e
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside2/tests/pysidetest/CMakeLists.txt')
-rw-r--r-- | sources/pyside2/tests/pysidetest/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/pyside2/tests/pysidetest/CMakeLists.txt b/sources/pyside2/tests/pysidetest/CMakeLists.txt index 0702d6085..b5fcb8d12 100644 --- a/sources/pyside2/tests/pysidetest/CMakeLists.txt +++ b/sources/pyside2/tests/pysidetest/CMakeLists.txt @@ -90,7 +90,7 @@ add_library(testbinding MODULE ${testbinding_SRC}) set_property(TARGET testbinding PROPERTY PREFIX "") set_property(TARGET testbinding PROPERTY OUTPUT_NAME "testbinding${PYTHON_EXTENSION_SUFFIX}") if(WIN32) - set_target_properties(testbinding PROPERTIES SUFFIX ".pyd") + set_property(TARGET testbinding PROPERTY SUFFIX ".pyd") endif() target_link_libraries(testbinding pysidetest |