Fixing BACDL_ETHERNET compilation (#108)
Co-authored-by: Txinto Vaz <txinto@iac.es>
This commit is contained in:
+7
-5
@@ -1,4 +1,4 @@
|
||||
cmake_minimum_required(VERSION 3.10 FATAL_ERROR)
|
||||
cmake_minimum_required(VERSION 3.7 FATAL_ERROR)
|
||||
|
||||
project(
|
||||
bacnet-stack
|
||||
@@ -563,11 +563,13 @@ if(BACNET_STACK_BUILD_APPS)
|
||||
# apps/ptransfer/s_ptransfer.c)
|
||||
# target_link_libraries(ptransfer PRIVATE ${PROJECT_NAME})
|
||||
|
||||
add_executable(readbdt apps/readbdt/main.c)
|
||||
target_link_libraries(readbdt PRIVATE ${PROJECT_NAME})
|
||||
if(NOT BACDL_ETHERNET)
|
||||
add_executable(readbdt apps/readbdt/main.c)
|
||||
target_link_libraries(readbdt PRIVATE ${PROJECT_NAME})
|
||||
|
||||
add_executable(readfdt apps/readfdt/main.c)
|
||||
target_link_libraries(readfdt PRIVATE ${PROJECT_NAME})
|
||||
add_executable(readfdt apps/readfdt/main.c)
|
||||
target_link_libraries(readfdt PRIVATE ${PROJECT_NAME})
|
||||
endif()
|
||||
|
||||
add_executable(readfile apps/readfile/main.c)
|
||||
target_link_libraries(readfile PRIVATE ${PROJECT_NAME})
|
||||
|
||||
@@ -321,7 +321,6 @@ static void dlenv_network_port_init(void)
|
||||
since they are already set */
|
||||
Network_Port_Changes_Pending_Set(instance, false);
|
||||
}
|
||||
#endif
|
||||
#else
|
||||
/**
|
||||
* Datalink network port object settings
|
||||
@@ -331,6 +330,7 @@ static void dlenv_network_port_init(void)
|
||||
/* do nothing */
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/** Datalink maintenance timer
|
||||
* @ingroup DataLink
|
||||
|
||||
Reference in New Issue
Block a user