add missing compiler version check for Intel
@@ -503,6 +503,17 @@ class CMakeCommonMacros:
if(NOT ${VERSION_MAJOR}.${VERSION_MINOR} VERSION_EQUAL ${CONAN_COMPILER_MAJOR}.${CONAN_COMPILER_MINOR})
conan_error_compiler_version()
endif()
+ elseif(CONAN_COMPILER STREQUAL "intel")
+ if(NOT ${CONAN_COMPILER_VERSION} VERSION_LESS 19.1)
+ conan_split_version(${CONAN_COMPILER_VERSION} CONAN_COMPILER_MAJOR CONAN_COMPILER_MINOR)
+ if(NOT ${VERSION_MAJOR}.${VERSION_MINOR} VERSION_EQUAL ${CONAN_COMPILER_MAJOR}.${CONAN_COMPILER_MINOR})
+ conan_error_compiler_version()
+ endif()
+ else()
+ if(NOT ${VERSION_MAJOR} VERSION_EQUAL ${CONAN_COMPILER_VERSION})
+ conan_error_compiler_version()
+ endif()
+ endif()
else()
conan_message(STATUS "WARN: Unknown compiler '${CONAN_COMPILER}', skipping the version check...")
endif()
