C++: why do we use CMake OBJECT library? #189
KrisThielemans
started this conversation in
General
Replies: 2 comments 1 reply
-
|
I think we can fix this in the object library library. I will take a look. |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
(And the idea with the object library is to make it easier to incorporate the generated code, but you are not required to use it) |
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
Uh oh!
There was an error while loading. Please reload this page.
-
The generated CMakeLists.txt uses an OBJECT library, e.g. see https://github.com/microsoft/yardl/blob/bf7068e93bb2115cbf731037ed1d75710d795679/cpp/evolution/v2/generated/CMakeLists.txt#L26C1-L32C2
This possibly avoids some issues, but it causes others, including the need for (unexpected)
target_include_directories, as inIf OBJECT library is best, there probably should be a variable
<libraryname>_INCLUDE_DIRS, which might be expected.(Is the need for the
target_include_directoriesdocumented?)Beta Was this translation helpful? Give feedback.
All reactions