mirror of
https://git.tukaani.org/xz.git
synced 2025-12-17 10:58:45 +00:00
CMake >= 4.1 sets CMAKE_<LANG>_COMPILER_ARCHITECTURE_ID on many platforms. The list of possible values are documented. Use this variable when available. On older CMake versions CMAKE_SYSTEM_PROCESSOR is still used, thus the regexes have to include values like ^amd64 still. With old CMake versions, checking CMAKE_C_COMPILER_ARCHITECTURE_ID is somewhat useful with MSVC because CMAKE_SYSTEM_PROCESSOR might not match the target architecture.