I got this error
/usr/bin/ld: ../core/CMakeFiles/core.dir/logger.cpp.o: relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
I tried
set_target_properties(emsim PROPERTIES POSITION_INDEPENDENT_CODE ON)
But this didn't work, I'm trying to link pybind11, how should I deal with this error?
Thanks!