From 01ec57312bffc530673d59d2552052f8dbd8fe6f Mon Sep 17 00:00:00 2001 From: Beq Date: Wed, 4 Jun 2025 10:03:32 +0100 Subject: [PATCH] UA support in CMake --- indra/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/indra/CMakeLists.txt b/indra/CMakeLists.txt index c2dd47f0fb..310a358b96 100644 --- a/indra/CMakeLists.txt +++ b/indra/CMakeLists.txt @@ -73,6 +73,13 @@ if(TESTBUILD AND TESTBUILDPERIOD) endif(TESTBUILD AND TESTBUILDPERIOD) # +# Support for custom Primfeed UA +option(FS_PF_USER_AGENT "Optional compile‐time Primfeed user‐agent string" "") +if(FS_PF_USER_AGENT) + # For a single target, say your executable is called "firestorm_viewer": + add_compile_definitions(FS_PF_USER_AGENT="${FS_PF_USER_AGENT}") +endif() +# # [AVX Optimization] option(USE_AVX_OPTIMIZATION "AVX optimization support" OFF) option(USE_AVX2_OPTIMIZATION "AVX2 optimization support" OFF)