From ecff63b090ea5b386a2ca53f4bec969e40859480 Mon Sep 17 00:00:00 2001 From: John Colvin Date: Mon, 19 Aug 2024 15:04:48 +0000 Subject: [PATCH] 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. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 079941617..a84492624 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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/$")