18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-19 22:44:59 +01:00

build: a build without AVX2 has _noavx2 at the end of its executable name

With ENABLE_AVX2=OFF the executable is eu07-x64_<date>_<hash>_noavx2.exe (eu07-x64_noavx2.exe
without ADD_VERSION_SUFFIX), so a starter can tell the two builds apart by the name alone and
pick this one on a CPU without AVX2. The AVX2 build keeps its name.
This commit is contained in:
maj00r
2026-11-15 21:22:14 +01:00
parent 348a814ce2
commit 507fcd8cb3

View File

@@ -475,6 +475,11 @@ if (ADD_VERSION_SUFFIX)
set (SUFFIX "_${SRC_SHORT_DATE}_${GIT_HASH}") set (SUFFIX "_${SRC_SHORT_DATE}_${GIT_HASH}")
endif() endif()
# a build without AVX2 says so in its name, so a starter can pick it on a CPU without AVX2
if (NOT ENABLE_AVX2)
set (SUFFIX "${SUFFIX}_noavx2")
endif()
set(OPENVR_LIBRARY "openvr_api") set(OPENVR_LIBRARY "openvr_api")
set(OPENVR_INCLUDE_DIR "") set(OPENVR_INCLUDE_DIR "")