Skip to content

Conversation

kilo52
Copy link
Member

@kilo52 kilo52 commented Oct 9, 2025

Improved the dependency() CMake function.

Adds the concept of a conventional dependency build file. These files are automatically included and processed by the dependency() function after the internal call to FetchContent_MakeAvailable() and therefore build files can be used, as opposed to the dependency configuration files, to adjust specific properties of the dependency target.
Adds the DEPENDENCY_BUILD_FILE function parameter to let the user define an alternative dependency build file.

Added the concept of a conventional dependency build file. These files are
automatically included and processed by the dependency() function after the
internal call to FetchContent_MakeAvailable() and therefore build files can
be used, as opposed to the dependency configuration files, to adjust specific
properties of the dependency target.
Added the DEPENDENCY_BUILD_FILE function parameter to let the user define
an alternative dependency build file.

Signed-off-by: kilo52 <[email protected]>
@kilo52 kilo52 self-assigned this Oct 9, 2025
@kilo52 kilo52 added Improvement Improvement of an existing feature Templates Changes in project source templates C++ Affects project source templates or init code for C++ C Affects project source templates or init code for C labels Oct 9, 2025
@kilo52 kilo52 linked an issue Oct 9, 2025 that may be closed by this pull request
Removed unnecessary variable path append.

Signed-off-by: kilo52 <[email protected]>
Improved warning message.

Signed-off-by: kilo52 <[email protected]>
Added more explanations about dependency build files.

Signed-off-by: kilo52 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C++ Affects project source templates or init code for C++ C Affects project source templates or init code for C Improvement Improvement of an existing feature Templates Changes in project source templates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Dependency Build Instruction File Handling

1 participant