Problem with CMake configuration due to AVX detection issue
The newly introduced HYTEG_BUILD_WITH_AVX
feature to use AVX intrinsics (in generated code) causes problems with CMake version < 3.25. Reason is that the check whether the platform supports AVX at all is currently using a new feature introduced only with 3.25. The resulting error message is:
-- Detecting CXX compile features - done
CMake Error at cmake/modules/DetectPlatformFeatures.cmake:9 (try_compile):
COMPILE_DEFINITIONS specified on a srcdir type TRY_COMPILE
Call Stack (most recent call first):
CMakeLists.txt:13 (include)
-- Platform does NOT support AVX.
Work is on the way to fix this, as our currentl requirement for CMake is only version 3.20, see also this discussion.