mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
ethercat: fix detection of EtherLAB in CMake
This commit is contained in:
parent
82e50d2b41
commit
dd155818ca
2 changed files with 2 additions and 1 deletions
|
@ -148,6 +148,7 @@ cmake_dependent_option(WITH_NODE_TEST_RTT "Build with test_rtt node-type"
|
|||
cmake_dependent_option(WITH_NODE_ULDAQ "Build with uldaq node-type" ON "LIBULDAQ_FOUND" OFF)
|
||||
cmake_dependent_option(WITH_NODE_WEBSOCKET "Build with websocket node-type" ON "WITH_WEB; LIBWEBSOCKETS_FOUND" OFF)
|
||||
cmake_dependent_option(WITH_NODE_ZEROMQ "Build with zeromq node-type" ON "LIBZMQ_FOUND" OFF)
|
||||
cmake_dependent_option(WITH_NODE_ETHERCAT "Build with ethercat node-type" ON "ETHERLAB_FOUND" OFF)
|
||||
cmake_dependent_option(WITH_NODE_EXAMPLE "Build with example node-type" ON "" OFF)
|
||||
|
||||
# Add more build configurations
|
||||
|
|
|
@ -162,7 +162,7 @@ if(WITH_NODE_EXAMPLE)
|
|||
endif()
|
||||
|
||||
# Enable Ethercat support
|
||||
if(ETHERLAB_FOUND AND WITH_IO)
|
||||
if(WITH_NODE_ETHERCAT)
|
||||
list(APPEND NODE_SRC ethercat.cpp)
|
||||
list(APPEND INCLUDE_DIRS ${ETHERLAB_INCLUDE_DIRS})
|
||||
list(APPEND LIBRARIES ${ETHERLAB_LIBRARIES})
|
||||
|
|
Loading…
Add table
Reference in a new issue