mirror of
https://github.com/3cky/mbusd.git
synced 2025-02-21 01:52:37 +01:00
fixed logw build handling, removed MAKE_DEPENDENT_OPTION
This commit is contained in:
parent
d26f68ee05
commit
98535324fe
@ -1,5 +1,4 @@
|
|||||||
cmake_minimum_required(VERSION 3.2)
|
cmake_minimum_required(VERSION 3.2)
|
||||||
include(CMakeDependentOption)
|
|
||||||
include(CPack)
|
include(CPack)
|
||||||
include(CheckFunctionExists)
|
include(CheckFunctionExists)
|
||||||
|
|
||||||
@ -18,12 +17,11 @@ option (TRXCTL "Support RS-232 to RS-485 converter data direction control" ON)
|
|||||||
if(TRXCTL)
|
if(TRXCTL)
|
||||||
add_definitions(-DTRXCTL)
|
add_definitions(-DTRXCTL)
|
||||||
endif()
|
endif()
|
||||||
option (LOG "enabling logging facility via logw" ON)
|
option (LOG "enabling logging facility" ON)
|
||||||
check_function_exists(logw HAVE_LOGW)
|
if(LOG)
|
||||||
if(HAVE_LOGW AND LOG)
|
|
||||||
add_definitions(-DLOG)
|
add_definitions(-DLOG)
|
||||||
endif()
|
endif()
|
||||||
CMAKE_DEPENDENT_OPTION(DEBUG_LOG "extra debug log info" OFF "LOGW" OFF)
|
option(DEBUG_LOG "extra debug log info" ON)
|
||||||
if(DEBUG_LOG)
|
if(DEBUG_LOG)
|
||||||
add_definitions(-DDEBUG)
|
add_definitions(-DDEBUG)
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user