Switch thunk generator to use FindPythonInterp https://cmake.org/cmake/help/v3.0/module/FindPythonInterp.html Change these lines to use the executable returned by this function, or early exit out. https://github.com/FEX-Emu/FEX/blob/master/ThunkLibs/GuestLibs/CMakeLists.txt#L21 https://github.com/FEX-Emu/FEX/blob/master/ThunkLibs/HostLibs/CMakeLists.txt#L14