Closed lenianiva closed 2 weeks ago
For example, during code generation I want to generate a header something.h that is in ${CMAKE_CURRENT_BINARY_DIR}/include/, but this would not work:
something.h
${CMAKE_CURRENT_BINARY_DIR}/include/
include!(concat!(env!("CMAKE_CURRENT_BINARY_DIR"), "/include/something.h"));
which gives the error:
error[cxxbridge]: expected "quoted/path/to" or <bracketed/path/to>
I found it. I should be using .include on cxx_build::bridge(). The concat! code was copied from bindgen
.include
cxx_build::bridge()
concat!
For example, during code generation I want to generate a header
something.h
that is in${CMAKE_CURRENT_BINARY_DIR}/include/
, but this would not work:which gives the error: