tgockel / json-voorhees

A killer modern C++ library for interacting with JSON.
http://tgockel.github.io/json-voorhees/
Apache License 2.0
128 stars 18 forks source link

Force static linkage #119

Closed jjberry314 closed 5 years ago

jjberry314 commented 5 years ago

Is there a compile option to force static linkage rather than generating a shared object?

Right now, the only way I can see to do it is to edit CMakeLists.txt line 132

tgockel commented 5 years ago

Yes -- when you run CMake, add -DLIBRARY_TYPE=STATIC. Example:

$> cmake -DLIBRARY_TYPE=STATIC ..
jjberry314 commented 5 years ago

Thanks!