Closed CJCombrink closed 1 year ago
Hi, have you tried following the example in https://github.com/facebook/fbthrift/blob/fbacb59d3f1afe4ba9217a63a56f139ff15384d4/thrift/example/if/CMakeLists.txt?
@thedavekwon
I went back to double check. I see my original post was incorrect.
When using cpp2
it works as expected, I was starting out with cpp
as commented in the CMake file
@language - The generator to use (cpp, cpp2 or py3)
Then during the struggles I switched to mstch_cpp2
as the language which broke things.
Using cpp2
is correct.
thrift1
does not seem to support a cpp
generator.
glad you figured it out! Good catch! Closing the issue.
I can't get the
ThriftLibrary.cmake
to work as expected.I have set the following:
And it produces
Calling
thrift_library(...)
with generatorcpp2
does not have any affect and no files are generated. From searching I found I must specify the generator asmstch_cpp2
then files are generated, but the library are not building with the following errorOn further inspection I see that the generated folder on disk is correctly called
gen-cpp2
and not (gen-mstch_cpp2 as expected by ThriftLibrary.cmake):