Skip to content

Commit 1a29b37

Browse files
fix: Cmake cbor after including sim or device
Signed-off-by: Prashant Rahul <[email protected]>
1 parent 5469419 commit 1a29b37

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@ list(APPEND PROTO_SRCS "vendor/nanopb/pb_common.c" "vendor/nanopb/pb_decode.c" "
4545
list (APPEND MINI_GMP_SRCS "vendor/mini-gmp/mini-gmp-helpers.c" "vendor/mini-gmp/mini-gmp.c")
4646
list (APPEND POSEIDON_SRCS "vendor/poseidon/sources/f251.c" "vendor/poseidon/sources/poseidon.c" "vendor/poseidon/sources/poseidon_rc.c")
4747

48-
# libcbor
49-
add_subdirectory(vendor/libcbor EXCLUDE_FROM_ALL)
50-
5148
OPTION(DEV_SWITCH "Additional features/logs to aid developers" OFF)
5249
OPTION(UNIT_TESTS_SWITCH "Compile build for main firmware or unit tests" OFF)
5350

@@ -70,6 +67,9 @@ else()
7067
include(utilities/cmake/simulator/simulator.cmake)
7168
endif()
7269

70+
# libcbor
71+
add_subdirectory(vendor/libcbor EXCLUDE_FROM_ALL)
72+
7373
# Include nanopb source headers
7474
target_include_directories( ${EXECUTABLE} PRIVATE vendor/nanopb generated/proto vendor/mini-gmp vendor/poseidon/sources vendor/libcbor/src)
7575

0 commit comments

Comments
 (0)