diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 21865e5..89a44eb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -231,8 +231,8 @@ IF(BUILD_KERNEL_MODULE) SET(KERNEL_DIR "/lib/modules/${CMAKE_SYSTEM_VERSION}/build") ENDIF() - SET(KERNEL_C_FLAGS "") - IF(KERNEL_C_FLAGS MATCHES Debug) + SET(KERNEL_C_FLAGS "" CACHE STRING "Additional C flags to be used for building the kernel module") + IF(CMAKE_BUILD_TYPE MATCHES Debug) SET(KERNEL_C_FLAGS "-g -DDEBUG") ENDIF() |