fix server app doesn't work with BAC_ROUTING (#783)
This commit is contained in:
+20
-4
@@ -802,8 +802,12 @@ if(BACNET_STACK_BUILD_APPS)
|
||||
add_executable(error apps/error/main.c)
|
||||
target_link_libraries(error PRIVATE ${PROJECT_NAME})
|
||||
|
||||
# add_executable(gateway apps/gateway/main.c apps/gateway/gateway.h)
|
||||
# target_link_libraries(gateway PRIVATE ${PROJECT_NAME})
|
||||
add_executable(gateway apps/gateway/main.c apps/gateway/gateway.h)
|
||||
target_link_libraries(gateway PRIVATE ${PROJECT_NAME})
|
||||
target_compile_options(gateway PRIVATE
|
||||
# Unreachable code because we have endless loop.
|
||||
$<$<C_COMPILER_ID:MSVC>:/wd4702>
|
||||
)
|
||||
|
||||
add_executable(getevent apps/getevent/main.c)
|
||||
target_link_libraries(getevent PRIVATE ${PROJECT_NAME})
|
||||
@@ -933,8 +937,20 @@ if(BACNET_STACK_BUILD_APPS)
|
||||
endif()
|
||||
|
||||
if(BACDL_BIP AND BACDL_BIP6)
|
||||
add_executable(router-ipv6 apps/router-ipv6/main.c)
|
||||
target_link_libraries(router-ipv6 PRIVATE ${PROJECT_NAME})
|
||||
add_executable(
|
||||
router-ipv6
|
||||
apps/router-ipv6/router-ipv6.h
|
||||
apps/router-ipv6/main.c)
|
||||
target_link_libraries(
|
||||
router-ipv6
|
||||
PRIVATE ${PROJECT_NAME})
|
||||
target_compile_options(router-ipv6 PRIVATE
|
||||
# These make this example not totally C90 compatible but it is ok.
|
||||
|
||||
-Wno-declaration-after-statement
|
||||
-Wno-overlength-strings
|
||||
-Wno-variadic-macros
|
||||
)
|
||||
endif()
|
||||
|
||||
add_executable(scov apps/scov/main.c)
|
||||
|
||||
Reference in New Issue
Block a user