improvement: Set SHARED_MEMORY_PREFIX to an environment variable

So we can effectively define it at runtime. We don't want to have to
produce different builds just to change the shared mem prefix.
This commit is contained in:
John Colvin committed 2024-08-27 15:35:58 +00:00
1 parent 8356d3e394
commit ecff63b090
1 file changed
+1 -1
+1 -1
View File
@@ -18,7 +18,7 @@ set(
# SHARED_MEMORY_PREFIX serves as a kind of namespace so multiple applications
# can run simultaneously without fighting over the same shm files (e.g., sparkd,
# api server, etc.).
set(SHARED_MEMORY_PREFIX "bts" CACHE STRING "Prefix to use when creating shared memory files")
set(SHARED_MEMORY_PREFIX "\${BTS_SHARED_MEMORY_PREFIX}" CACHE STRING "Prefix to use when creating shared memory files")
set(EXTERNALS_BIN "${EXTERNALS_ROOT}/bin")
set(EXTERNALS_INCLUDE "${EXTERNALS_ROOT}/include")
set(EXTERNALS_LIB "${EXTERNALS_ROOT}/lib/$<CONFIG>")