Skip to content

Commit

Permalink
cmake: Fix packet trace and data trace linkage
Browse files Browse the repository at this point in the history
This commit fixes two issues:
 - The if guard had a typo and missed CONFIG_OSDP_DATA_TRACE
 - LibOSDP source file pcap.c was added C-Utils src

Fixes: #169
Signed-off-by: Siddharth Chandrasekaran <[email protected]>
  • Loading branch information
sidcha committed Mar 12, 2024
1 parent 253d87e commit 6cca1f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ if (NOT CONFIG_OSDP_STATIC_PD)
)
endif()

if (CONFIG_OSDP_PACKET_TRACE OR CONFIG_OSDP_PACKET_TRACE)
list(APPEND LIB_OSDP_UTILS_SRC
if (CONFIG_OSDP_PACKET_TRACE OR CONFIG_OSDP_DATA_TRACE)
list(APPEND LIB_OSDP_SOURCES
${CMAKE_CURRENT_SOURCE_DIR}/osdp_pcap.c
)
endif()
Expand Down Expand Up @@ -135,7 +135,7 @@ list(APPEND LIB_OSDP_UTILS_SRC
${PROJECT_SOURCE_DIR}/utils/src/logger.c
)

if (CONFIG_OSDP_PACKET_TRACE OR CONFIG_OSDP_PACKET_TRACE)
if (CONFIG_OSDP_PACKET_TRACE OR CONFIG_OSDP_DATA_TRACE)
list(APPEND LIB_OSDP_UTILS_SRC
${PROJECT_SOURCE_DIR}/utils/src/pcap_gen.c
)
Expand Down

0 comments on commit 6cca1f3

Please sign in to comment.