UA support in CMake

master
Beq 2025-06-04 10:03:32 +01:00
parent 72e0329acd
commit 01ec57312b
1 changed files with 7 additions and 0 deletions

View File

@ -73,6 +73,13 @@ if(TESTBUILD AND TESTBUILDPERIOD)
endif(TESTBUILD AND TESTBUILDPERIOD)
#</FS:Ansariel>
#<FS:Beq> Support for custom Primfeed UA
option(FS_PF_USER_AGENT "Optional compiletime Primfeed useragent 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()
# </Beq>
# <FS:Ansariel> [AVX Optimization]
option(USE_AVX_OPTIMIZATION "AVX optimization support" OFF)
option(USE_AVX2_OPTIMIZATION "AVX2 optimization support" OFF)