Compiling ART on OSX

The following cmake command worked, and I am able to get an executable. Unfortunately, when I move it to /Applications and run it, the executable crashes. I experience the same issue with compiling RT as reported here. Really puzzled why I am able to finish the compiling process, but end up with a faulty executable? Any ideas?

I use the following commands:

cmake … -DCMAKE_BUILD_TYPE=“release” -DPROC_TARGET_NUMBER=“2” -DCACHE_NAME_SUFFIX=“5.8-dev” -DCMAKE_C_COMPILER=“clang” -DCMAKE_CXX_COMPILER=“clang++” -DWITH_LTO=“OFF” -DLENSFUNDBDIR=“/Applications/RawTherapee.app/Contents/Resources/share/lensfun” -DOpenMP_C_FLAGS=-fopenmp=libomp -DOpenMP_CXX_FLAGS=-fopenmp=libomp -DOpenMP_C_LIB_NAMES=“libomp” -DOpenMP_CXX_LIB_NAMES=“libomp” -DOpenMP_libomp_LIBRARY=“/usr/local/lib/libomp.dylib” -DOpenMP_CXX_FLAGS=“-Wno-pass-failed -Wno-deprecated-register -Xpreprocessor -fopenmp /usr/local/lib/libomp.dylib -I/usr/local/include” -DOpenMP_CXX_LIB_NAMES=“libomp” -DOpenMP_C_FLAGS=“-Wno-pass-failed -Wno-deprecated-register -Xpreprocessor -fopenmp /usr/local/lib/libomp.dylib -I/usr/local/include” -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_EXE_LINKER_FLAGS=“-L/usr/local/opt/libffi/lib -L/usr/local/lib” -DCMAKE_AR=“/usr/bin/ar” -DCMAKE_RANLIB=“/usr/bin/ranlib” -DCMAKE_OSX_DEPLOYMENT_TARGET=“10.15”

make -j$(sysctl -n hw.ncpu) install

sudo make macosx_bundle