You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[shared_headers] # Do we even need this?
[my_lib]
target_type = "shared library"output_name = "the_lib"
[my_executable]
dependencies = ["my_lib", "shared_headers"]
The text was updated successfully, but these errors were encountered:
What you wrote should work fine.
Note that subprojects may not work quite as well yet, as not every contingency has been tested, yet. See PR #47.
The shared_headers should currently be needed in the above example. I am not sure right now if this is only implemented on PR #47, but if we let clang-build search all folders of a project, things can become mixed. Therefore, top-level directories should only be searched, if no src or include folder is found for the corresponding target (or in this example, not even a target folder).
I cannot remember what my last comment was about... If it was about [shared_headers] # Do we even need this?, I don't believe that a named folder should be identified as a target by default. It would be better to specify all targets manually, so that repositories containing a lot of folders don't get mixed up.
Did we already decide on whether we want to identify folders from target names? E.g.:
The text was updated successfully, but these errors were encountered: