You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try and build using cmake and then use in my projects. It complains that -fPIC isn't turned on. This can be fixed by adding: set(CMAKE_POSITION_INDEPENDENT_CODE ON)
To the cmake file, up the top somewhere.
The text was updated successfully, but these errors were encountered:
Yeah, that's the fix! The whole idea is to enable it whenever the compiler complains about needing -fPIC. If you're building from the command line, you can also just pass -D CMAKE_POSITION_INDEPENDENT_CODE=ON to cmake. That should sort it out!
When I try and build using cmake and then use in my projects. It complains that -fPIC isn't turned on. This can be fixed by adding:
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
To the cmake file, up the top somewhere.
The text was updated successfully, but these errors were encountered: