From b257b673fbef40cb2bdea15df984bf960ba4c363 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 ceaf74ffe..739705daa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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/$")