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(
|
project(
|
||||||
bacnet-stack
|
bacnet-stack
|
||||||
@@ -563,11 +563,13 @@ if(BACNET_STACK_BUILD_APPS)
|
|||||||
# apps/ptransfer/s_ptransfer.c)
|
# apps/ptransfer/s_ptransfer.c)
|
||||||
# target_link_libraries(ptransfer PRIVATE ${PROJECT_NAME})
|
# target_link_libraries(ptransfer PRIVATE ${PROJECT_NAME})
|
||||||
|
|
||||||
add_executable(readbdt apps/readbdt/main.c)
|
if(NOT BACDL_ETHERNET)
|
||||||
target_link_libraries(readbdt PRIVATE ${PROJECT_NAME})
|
add_executable(readbdt apps/readbdt/main.c)
|
||||||
|
target_link_libraries(readbdt PRIVATE ${PROJECT_NAME})
|
||||||
|
|
||||||
add_executable(readfdt apps/readfdt/main.c)
|
add_executable(readfdt apps/readfdt/main.c)
|
||||||
target_link_libraries(readfdt PRIVATE ${PROJECT_NAME})
|
target_link_libraries(readfdt PRIVATE ${PROJECT_NAME})
|
||||||
|
endif()
|
||||||
|
|
||||||
add_executable(readfile apps/readfile/main.c)
|
add_executable(readfile apps/readfile/main.c)
|
||||||
target_link_libraries(readfile PRIVATE ${PROJECT_NAME})
|
target_link_libraries(readfile PRIVATE ${PROJECT_NAME})
|
||||||
|
|||||||
@@ -321,7 +321,6 @@ static void dlenv_network_port_init(void)
|
|||||||
since they are already set */
|
since they are already set */
|
||||||
Network_Port_Changes_Pending_Set(instance, false);
|
Network_Port_Changes_Pending_Set(instance, false);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
#else
|
#else
|
||||||
/**
|
/**
|
||||||
* Datalink network port object settings
|
* Datalink network port object settings
|
||||||
@@ -331,6 +330,7 @@ static void dlenv_network_port_init(void)
|
|||||||
/* do nothing */
|
/* do nothing */
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/** Datalink maintenance timer
|
/** Datalink maintenance timer
|
||||||
* @ingroup DataLink
|
* @ingroup DataLink
|
||||||
|
|||||||
Reference in New Issue
Block a user