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 2025-08-24 13:46:52 -04:00
1 parent 43df2bbdc5
commit b257b673fb
1 file changed
+1 -1
+1 -1
View File
@@ -21,7 +21,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>")