Skip to content

Commit

Permalink
fix ParseIDL
Browse files Browse the repository at this point in the history
  • Loading branch information
facontidavide committed Feb 4, 2025
1 parent 1c386d8 commit 5f4fbc9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
5 changes: 1 addition & 4 deletions plotjuggler_plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,4 @@ add_subdirectory( ParserLineInflux )

add_subdirectory( PluginsZcm )

## if subdirectory exist
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR/ParserIDL/dds_parser}")
add_subdirectory( ParserIDL )
endif()
add_subdirectory( ParserIDL )
16 changes: 8 additions & 8 deletions plotjuggler_plugins/ParserIDL/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/dds_parser")
set(DDS_PARSER_BUILD_TESTING OFF CACHE BOOL "Force DDS_PARSER_BUILD_TESTING to OFF" FORCE)
add_subdirectory(dds_parser)
else()
message(WARNING "dds_parser not found in ${CMAKE_CURRENT_SOURCE_DIR}/dds_parser, skipping!")
return()
endif()


add_definitions(${QT_DEFINITIONS})
add_definitions(-DQT_PLUGIN)

# if subdirectory not found, skip
if (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/dds_parser)
message(WARNING "dds_parser not found, skipping")
return()
endif()

set(DDS_PARSER_BUILD_TESTING OFF)
add_subdirectory(dds_parser)

add_library(ParserDDS SHARED
idl_parser.cpp)
Expand Down

0 comments on commit 5f4fbc9

Please sign in to comment.