Historically Terra has installed itself as terra.so on Unix, even though the system convention would be libterra.so. I believe at the time the reason was for compatibility with Lua, where modules are expected to be unprefixed (e.g., you can require("terra") to load terra.so automatically).
We don't currently have a test case for this, but you can verify this behavior manually with (after a build):
This change makes libterra.so the default in CMake, but adds a target to symlink this to terra.so for compatibility with the Lua convention. This should benefit most users on Unix who (aside from LuaJIT) expect libraries to be prefixed with lib.
Historically Terra has installed itself as
terra.so
on Unix, even though the system convention would belibterra.so
. I believe at the time the reason was for compatibility with Lua, where modules are expected to be unprefixed (e.g., you canrequire("terra")
to loadterra.so
automatically).We don't currently have a test case for this, but you can verify this behavior manually with (after a build):
This change makes
libterra.so
the default in CMake, but adds a target to symlink this toterra.so
for compatibility with the Lua convention. This should benefit most users on Unix who (aside from LuaJIT) expect libraries to be prefixed withlib
.