DkSDK_OCamlForLibOfStaticBinary¶
This library target
is
created by the DkSDKProject_AddProject()
command.
It has a corresponding ALIAS target
named DkSDK::OCaml::ForLibOfStaticBinary
which is the preferred way to
access the target.
This library is required when linking C code that needs access to any OCaml code, which is destined to be used within an executable that does not dynamically link to the native code OCaml shared libraries (ex. libasmrun.so).
The runtime libraries that OCaml requires (the math library, etc.) are made
available as usage requirements of DkSDK::OCaml::ForLibOfStaticBinary
.
See DkSDK_OCamlForStaticBinary
for the guidance on when to use
static links to OCaml and when to use dynamic links.
Consider reading the DkSDK CMake Tutorial
to see how to use
this interface library.