-DKERNEL_MINIMAL_VERSION_OK was always set.
Move it into else case.
Change-Id: Icc7e0982584bce6134611a7724e9d1ef36602360
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
message (STATUS "${Cyan}-- Check kernel_minimal_version (found kernel version ${KERNEL_VERSION})${ColourReset}")
if (KERNEL_VERSION VERSION_LESS ${kernel_minimal_version})
message(WARNING "${Yellow}**** Warning: Some feature(s) require at least ${kernel_minimal_version}. Please use a recent kernel or source your SDK environment then clean and reconfigure your CMake project.${ColourReset}")
+ else (KERNEL_VERSION VERSION_LESS ${kernel_minimal_version})
+ add_definitions(-DKERNEL_MINIMAL_VERSION_OK)
endif (KERNEL_VERSION VERSION_LESS ${kernel_minimal_version})
- add_definitions(-DKERNEL_MINIMAL_VERSION_OK)
endif(kernel_minimal_version)
INCLUDE(FindPkgConfig)