We are developing an API library where we would like to have a single shared library that includes JsonBox functionality as well our custom code. To statically compile in the JsonBox code, we need to add the fPIC definition to the CMakeLists.txt file. Can we add this to the JsonBox main branch as is seems generally useful. Simple adding the following to line 7 of the CMakeLists.txt file should work.
This can be resolved by passing the fPIC option in via the command line (or Superbuild if building from another package). Closing since this is not fundamentally a JsonBox issue.
We are developing an API library where we would like to have a single shared library that includes JsonBox functionality as well our custom code. To statically compile in the JsonBox code, we need to add the fPIC definition to the CMakeLists.txt file. Can we add this to the JsonBox main branch as is seems generally useful. Simple adding the following to line 7 of the CMakeLists.txt file should work.
add_definitions(-fPIC)