Fix environment vars usage when compiling with CMake
This commit is contained in:
parent
e898e5f73b
commit
f3f2ec1c0f
1 changed files with 5 additions and 0 deletions
|
@ -34,6 +34,11 @@ IF(LIBNFC_LOG)
|
||||||
ADD_DEFINITIONS(-DLOG)
|
ADD_DEFINITIONS(-DLOG)
|
||||||
ENDIF(LIBNFC_LOG)
|
ENDIF(LIBNFC_LOG)
|
||||||
|
|
||||||
|
SET(LIBNFC_ENVVARS ON CACHE BOOL "Enable envvars facility")
|
||||||
|
IF(LIBNFC_ENVVARS)
|
||||||
|
ADD_DEFINITIONS(-DENVVARS)
|
||||||
|
ENDIF(LIBNFC_ENVVARS)
|
||||||
|
|
||||||
SET(LIBNFC_DEBUG_MODE OFF CACHE BOOL "Debug mode")
|
SET(LIBNFC_DEBUG_MODE OFF CACHE BOOL "Debug mode")
|
||||||
IF(LIBNFC_DEBUG_MODE)
|
IF(LIBNFC_DEBUG_MODE)
|
||||||
ADD_DEFINITIONS(-DDEBUG)
|
ADD_DEFINITIONS(-DDEBUG)
|
||||||
|
|
Loading…
Add table
Reference in a new issue