This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
execute_process(COMMAND uname -r OUTPUT_VARIABLE UNAME_RESULT OUTPUT_STRIP_TRAILING_WHITESPACE) | |
message(-- " Kernel version: " ${UNAME_RESULT}) | |
string(REGEX MATCH "[0-9]+.[0-9]+" LINUX_KERNEL_VERSION ${UNAME_RESULT}) | |
if (LINUX_KERNEL_VERSION VERSION_LESS 3.8) | |
message(FATAL_ERROR "Linux kernel version should be greater than 3.8") | |
endif() |