PARQUET-1319: Pass BISON_EXECUTABLE to Thrift EP for MacOS

Author: thamht4190 <thamht01188@gmail.com>
Author: gubee <thamht01188@gmail.com>

Closes #470 from thamht4190/PARQUET-1319 and squashes the following commits:

d8ced13 [thamht4190] PARQUET-1319: Pass BISON_EXECUTABLE to Thrift EP for MacOS
da9c86b [gubee] Merge pull request #1 from apache/master
diff --git a/cmake_modules/ThirdpartyToolchain.cmake b/cmake_modules/ThirdpartyToolchain.cmake
index b2de4d2..1934742 100644
--- a/cmake_modules/ThirdpartyToolchain.cmake
+++ b/cmake_modules/ThirdpartyToolchain.cmake
@@ -249,6 +249,11 @@
                           "-DWITH_PLUGIN=OFF"
                           ${THRIFT_CMAKE_ARGS})
     set(THRIFT_DEPENDENCIES ${THRIFT_DEPENDENCIES} zlib_ep)
+  elseif (APPLE)
+    if (DEFINED BISON_EXECUTABLE)
+      set(THRIFT_CMAKE_ARGS "-DBISON_EXECUTABLE=${BISON_EXECUTABLE}"
+                            ${THRIFT_CMAKE_ARGS})
+    endif()
   endif()
 
   ExternalProject_Add(thrift_ep