1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2024-11-30 23:05:48 +00:00
libcpuid/drivers/arm/CMakeLists.txt
The Tumultuous Unicorn Of Darkness 52efefbb7d
CMake: harmonizes options
2024-07-10 20:56:38 +02:00

12 lines
322 B
CMake

# Options
option(LIBCPUID_DRIVER_DEBUG "Debug kernel driver" OFF)
if(LIBCPUID_DRIVER_DEBUG)
add_definitions(-DLIBCPUID_DRIVER_DEBUG)
endif(LIBCPUID_DRIVER_DEBUG)
if("${CMAKE_SYSTEM_NAME}" STREQUAL "FreeBSD")
add_subdirectory(freebsd)
elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
add_subdirectory(linux)
endif()