mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-10 14:41:43 +00:00
aedi: ability to keep only one cmake module target
This commit is contained in:
parent
d198ac509d
commit
2d398bc718
1 changed files with 7 additions and 0 deletions
|
@ -450,3 +450,10 @@ class CMakeStaticDependencyTarget(CMakeTarget):
|
|||
|
||||
def post_build(self, state: BuildState):
|
||||
self.install(state)
|
||||
|
||||
def keep_module_target(self, state: BuildState, target: str):
|
||||
def _keep_targets(line: str):
|
||||
return None if line.startswith('list(APPEND _IMPORT_CHECK') and target not in line else line
|
||||
|
||||
module_path = f'{state.install_path}/lib/cmake/{self.name}/targets-release.cmake'
|
||||
self.update_text_file(module_path, _keep_targets)
|
||||
|
|
Loading…
Reference in a new issue