Skip to content

Commit 995890d

Browse files
committed
Leave a FIXME for posterity
This target was silently being skiped, not it is explicit
1 parent af954f8 commit 995890d

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

tools/CMakeLists.txt

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,21 @@
44
# install(TARGETS bt4_log_cat
55
# DESTINATION ${BTCPP_BIN_DESTINATION} )
66

7-
if( ZMQ_FOUND )
8-
add_executable(bt4_recorder bt_recorder.cpp )
9-
target_link_libraries(bt4_recorder ${BTCPP_LIBRARY} ${ZMQ_LIBRARIES})
10-
install(TARGETS bt4_recorder
11-
DESTINATION ${BTCPP_BIN_DESTINATION} )
12-
endif()
7+
# FIXME! This target doesn't build because behaviortree_cpp/flatbuffers/BT_logger_generated.h
8+
# doesn't get generated.
9+
# It was being silently ignored because it was included only if ZMQ_FOUND was set, but that check
10+
# was wrong for two reasons:
11+
# 1) The actual variable name set on FindZeroMQ.cmake is ZeroMQ_FOUND not ZMQ_FOUND
12+
# 2) This target does not depend on ZeroMQ, but actually on its C++ wrapper cppzmq.
13+
# Ideally we should check for cppzmq_FOUND, but because that would be only set in non-vendored mode
14+
# and furthermore it would not be set on this scope, I chose to use BTCPP_GROOT_INTERFACE as the check
15+
# for now.
16+
#if( BTCPP_GROOT_INTERFACE )
17+
# add_executable(bt4_recorder bt_recorder.cpp )
18+
# target_link_libraries(bt4_recorder ${BTCPP_LIBRARY} cppzmq)
19+
# install(TARGETS bt4_recorder
20+
# DESTINATION ${BTCPP_BIN_DESTINATION} )
21+
#endif()
1322

1423
add_executable(bt4_plugin_manifest bt_plugin_manifest.cpp )
1524
target_link_libraries(bt4_plugin_manifest ${BTCPP_LIBRARY} )

0 commit comments

Comments
 (0)