mirror of
https://github.com/anrieff/libcpuid
synced 2025-10-03 11:01:30 +00:00
CMake: harmonizes options
This commit is contained in:
parent
4d6cc787fe
commit
52efefbb7d
5 changed files with 58 additions and 40 deletions
|
@ -1,4 +1,6 @@
|
|||
option(LIBCPUID_DRIVER_DEBUG "Debug kernel module" OFF)
|
||||
# Options
|
||||
option(LIBCPUID_DRIVER_DEBUG "Debug kernel driver" OFF)
|
||||
|
||||
if(LIBCPUID_DRIVER_DEBUG)
|
||||
add_definitions(-DLIBCPUID_DRIVER_DEBUG)
|
||||
endif(LIBCPUID_DRIVER_DEBUG)
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
set(DRIVER_NAME "cpuid")
|
||||
# Options
|
||||
option(LIBCPUID_DRIVER_ARM_LINUX_DKMS "Use DKMS for CPUID kernel module for ARM" ON)
|
||||
|
||||
set(DRIVER_NAME "cpuid")
|
||||
|
||||
if(LIBCPUID_DRIVER_ARM_LINUX_DKMS)
|
||||
message(STATUS "Deploying DKMS configuration for CPUID kernel module...")
|
||||
set(LIBCPUID_SRC_DIR "/usr/src/${CMAKE_PROJECT_NAME}-${PROJECT_VERSION}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue