diff options
author | Jan-Simon Möller <jsmoeller@linuxfoundation.org> | 2017-07-26 20:47:40 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2018-10-15 18:22:47 +0200 |
commit | 3f449fe50c289fb339f758dfcdafcd054f7f7a3d (patch) | |
tree | 7e54e11bd439fbb468380f092df05681abb78cc2 /cmake/cmake.d/04-build_options.cmake | |
parent | 79917deb2f491bf099b9e46feffe56f947445bc5 (diff) |
Fix logic bug in addition of -DKERNEL_MINIMAL_VERSION
-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>
Diffstat (limited to 'cmake/cmake.d/04-build_options.cmake')
-rw-r--r-- | cmake/cmake.d/04-build_options.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/cmake.d/04-build_options.cmake b/cmake/cmake.d/04-build_options.cmake index bc14ee6..18a1b17 100644 --- a/cmake/cmake.d/04-build_options.cmake +++ b/cmake/cmake.d/04-build_options.cmake @@ -48,8 +48,9 @@ if (kernel_minimal_version) 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) |