-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7231 from mensinda/cmOverride
cmake: Add more advanced subproject configuration options
- Loading branch information
Showing
16 changed files
with
470 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
## Configure CMake subprojects with meson.subproject_options | ||
|
||
Meson now supports passing configuration options to CMake and overriding | ||
certain build details extracted from the CMake subproject. | ||
|
||
The new CMake configuration options object is very similar to the | ||
[configuration data object](Reference-manual.md#configuration-data-object) object | ||
returned by [`configuration_data`](Reference-manual.md#configuration_data). It | ||
is generated by the `subproject_options` function | ||
|
||
All configuration options have to be set *before* the subproject is configured | ||
and must be passed to the `subproject` method via the `options` key. Altering | ||
the configuration object won't have any effect on previous `cmake.subproject` | ||
calls. | ||
|
||
**Note:** The `cmake_options` kwarg for the `subproject` function is now | ||
deprecated since it is replaced by the new `options` system. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.