Install API header file via install(target) #737
ThomsonTan
started this conversation in
General
Replies: 1 comment
-
Thanks for raising this one Thomas, This answers my initial question, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In today's SIG meeting, @eyakimov-bbg had a question that why the API header files are installed via
install(DIRECTORY)
instead of using the existinginstall(TARGET)
as below. There is CMake target propertyPUBLIC_HEADER
which is honored byinstall(TARGET)
, but that does flat the directory structure of the header file. It seemsinstall(DIRECTORY)
is necessary to preserve the directory structure of our API header files.opentelemetry-cpp/api/CMakeLists.txt
Line 16 in d8467a7
Reference:
StackOverflow
@owent @maxgolov @eyakimov-bbg @lalitb
Beta Was this translation helpful? Give feedback.
All reactions