| --- oiio-Release-2.1.16.0/src/cmake/pythonutils.cmake.orig 2020-06-01 19:32:35.000000000 +0300 |
| +++ oiio-Release-2.1.16.0/src/cmake/pythonutils.cmake 2020-06-10 09:51:36.116399600 +0300 |
| @@ -106,9 +106,11 @@ |
| endif() |
| |
| if (WIN32) |
| + execute_process(COMMAND ${Python_EXECUTABLE} -c "import distutils.sysconfig, sys; get = distutils.sysconfig.get_config_var; sys.stdout.write(get('EXT_SUFFIX') or get('SO') or '.pyd');" |
| + OUTPUT_VARIABLE PYTHON_MOD_EXT) |
| set_target_properties (${target_name} PROPERTIES |
| DEBUG_POSTFIX "_d" |
| - SUFFIX ".pyd") |
| + SUFFIX "${PYTHON_MOD_EXT}") |
| endif() |
| |
| # In the build area, put it in lib/python so it doesn't clash with the |