OpenCC icon indicating copy to clipboard operation
OpenCC copied to clipboard

Add a build flag to disable building data for cross compilation

Open alex-the-man opened this issue 2 years ago • 1 comments

Hello, I'm using OpenCC on iOS.

When OpenCC is cross compiled, the build fails as https://github.com/BYVoid/OpenCC/blob/master/data/CMakeLists.txt#L139 executes the cross compiled opencc_dict (targeting arm64) on the host system (x86_64).

Do you mind if I add a build flag BUILD_DATA following https://github.com/BYVoid/OpenCC/blob/master/CMakeLists.txt#L26 to let us disable data/dict generation during cross compilation?

If you like the idea, I could send a PR.

alex-the-man avatar Oct 10 '21 22:10 alex-the-man