Closed GDYendell closed 1 year ago
@GDYendell It looks like the CMake-idiomatic solution is to simply do the following:
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
Setting this variable will recursively affect subsequent directories/dependent projects. Can you try setting this variable in your project?
Currently attempting to build a shared library against stream2 gives errors like:
Adding the compiler flag to the stream2, cbor and compression CMakeLists makes it work (e.g.), but I am not sure what the side effects of this would be.
It would be great to be able to build a shared library against main, however that may be implemented.