kobalicek / mathpresso

Mathematical Expression Parser and JIT Compiler
Other
140 stars 16 forks source link

Compiling with AsmJit as a binary dependency? #17

Open Crghilardi opened 2 years ago

Crghilardi commented 2 years ago

In the current CMake configuration, AsmJit is assumed to be a source dependency and is included from themathpresso CMakeLists.txt. Once included, AsmJit gets statically compiled with the default CMake flags.

I was wondering if it would be possible to compile with AsmJit as a pre-compiled shared library?

kobalicek commented 2 years ago

Hi, it would be possible. To be honest I didn't really overthink the CMakeLists.txt file while working on mathpresso as it was initially an example of using AsmJit. But it would be possible to add some option or something to link to it dynamically.