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:
@@ -475,6 +475,11 @@ if (ADD_VERSION_SUFFIX)
|
||||
set (SUFFIX "_${SRC_SHORT_DATE}_${GIT_HASH}")
|
||||
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_INCLUDE_DIR "")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user