diff --git a/tesseract_python/cmake/install_build_wheel.cmake.in b/tesseract_python/cmake/install_build_wheel.cmake.in index ef7039d9..97a20551 100644 --- a/tesseract_python/cmake/install_build_wheel.cmake.in +++ b/tesseract_python/cmake/install_build_wheel.cmake.in @@ -15,7 +15,7 @@ endif() endforeach() elseif(APPLE) -execute_process(COMMAND @PYTHON_EXECUTABLE@ setup.py bdist_wheel WORKING_DIRECTORY python RESULT_VARIABLE STATUS) +execute_process(COMMAND @PYTHON_EXECUTABLE@ setup.py bdist_wheel --plat-name=@TESSERACT_PYTHON_WHEEL_PLATFORM@ WORKING_DIRECTORY python RESULT_VARIABLE STATUS) if(STATUS AND NOT STATUS EQUAL 0) message(FATAL_ERROR "Python Build Wheel Failed: ${STATUS}") endif()