add support for building with deprecation bypass
This commit is contained in:
@@ -70,6 +70,15 @@ if(NOT CMAKE_BUILD_TYPE)
|
||||
set(CMAKE_BUILD_TYPE Release)
|
||||
endif()
|
||||
|
||||
option(
|
||||
BACNET_STACK_DEPRECATED_DISABLE
|
||||
"Disable deprecation compile warnings"
|
||||
ON)
|
||||
|
||||
if(BACNET_STACK_DEPRECATED_DISABLE)
|
||||
add_definitions(-DBACNET_STACK_DEPRECATED_DISABLE)
|
||||
endif()
|
||||
|
||||
set(CMAKE_CXX_FLAGS "-Wall -Wextra")
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "-g")
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
|
||||
|
||||
Reference in New Issue
Block a user