Skip to content

Instantly share code, notes, and snippets.

@drdanz
Created February 8, 2019 15:23
Show Gist options
  • Save drdanz/ef23427b16b29a3493a8ef443bb95b5d to your computer and use it in GitHub Desktop.
Save drdanz/ef23427b16b29a3493a8ef443bb95b5d to your computer and use it in GitHub Desktop.
YARP thrift bug
cmake_minimum_required(VERSION 3.5)
cmake_policy(SET CMP0074 NEW)
project(test_thrift_list_i8)
find_package(YARP 3.1.100 COMPONENTS OS sig idl_tools REQUIRED)
yarp_add_idl(FOO test.thrift)
add_executable(test_thrift_list_i8 main.cpp ${FOO})
target_link_libraries(test_thrift_list_i8 YARP::YARP_OS YARP::YARP_sig)
#include <test.h>
int main()
{
}
struct test
{
1: list<i8> l;
2: list<i16> m;
3: list<i32> n;
4: list<i64> o;
5: list<string> p;
6: list<double> q;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment