Blob Blame History Raw
Index: oiio-Release-2.1.16.0/src/cmake/oiio_macros.cmake
===================================================================
--- oiio-Release-2.1.16.0.orig/src/cmake/oiio_macros.cmake
+++ oiio-Release-2.1.16.0/src/cmake/oiio_macros.cmake
@@ -197,7 +197,7 @@ macro (oiio_add_tests)
                 set (_testname "${_testname}-broken")
             endif ()
 
-            set (_runtest python "${CMAKE_SOURCE_DIR}/testsuite/runtest.py" ${_testdir})
+            set (_runtest ${PYTHON_EXECUTABLE} "${CMAKE_SOURCE_DIR}/testsuite/runtest.py" ${_testdir})
             if (MSVC_IDE)
                 set (_runtest ${_runtest} --devenv-config $<CONFIGURATION>
                                           --solution-path "${CMAKE_BINARY_DIR}" )
@@ -215,7 +215,7 @@ macro (oiio_add_tests)
             if (_testname MATCHES "texture")
                 set (_testname ${_testname}.batch)
                 set (_testdir ${_testdir}.batch)
-                set (_runtest python "${CMAKE_SOURCE_DIR}/testsuite/runtest.py" ${_testdir})
+                set (_runtest ${PYTHON_EXECUTABLE} "${CMAKE_SOURCE_DIR}/testsuite/runtest.py" ${_testdir})
                 if (MSVC_IDE)
                     set (_runtest ${_runtest} --devenv-config $<CONFIGURATION>
                                           --solution-path "${CMAKE_BINARY_DIR}" )