-
|
Hi, I'm trying to build nanobind in a FreeBSD ports environment and I noticed that enabling a shared build for the internal nanobind library is not possible via any documented CMake option or cache variable. There is no way to enable a shared build of the internal nanobind library from outside the function (e.g. via CMAKE_ARGS or find_package configuration). |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Many people make shared builds via the NB_SHARED argument (please read the build system part of the docs if that isn't clear). Are you saying that there is something particular about FreeBSD here? |
Beta Was this translation helpful? Give feedback.
-
|
There is no way to enable a shared build of the internal nanobind library using a CMake variable. |
Beta Was this translation helpful? Give feedback.
There is no way to enable a shared build of the internal nanobind library using a CMake variable.
NB_SHAREDis an argument passed to nanobind's CMake high-level interface.The library
libnanobind.sois built along with the module extension itself. It's small (as the name "nanobind" suggests); it's under 180K on my system.