Files
ansible_role_package/tasks/pkgs/cmake.yml
Matthew Stobbs d1d556d425 modified make, fixed packages and vars
- the make helper now has distinct build stages
  - configure: is now defined in pkg.targets.configure
  - build: is now defined in pkg.targets.build
  - install: is now defined in pkg.targets.install
  - added pre-install: which is a list of targets that are looped over
before install
  - added post-instal: which is a list of targets that are looped over
after install

- removed major package level variables from vars/main.yml
  - moving those variables into actual package level variables as
defaults
  - if the values are defined they will be used instead of defaults
2026-03-19 13:39:26 -06:00

36 lines
1000 B
YAML

# vim: set filetype=yaml.ansible :
#
## Package: cmake
## Description: build system for c/c++
## Version: system
## Methods: system
## Helpers: -
---
- name: Set cmake default facts # {{
ansible.builtin.set_fact:
cmake:
install_methods:
- system
# }}
- name: Configure cmake
when:
- "'cmake' not in __configured"
block:
- name: Set cmake install method
when:
- cmake_install_method is undefined
ansible.builtin.set_fact:
cmake_install_method: "{{ install_method if install_method in cmake.install_methods else cmake.install_methods[0] }}"
- name: Configure cmake system install
when:
- cmake_install_method == "system"
block:
- name: Append cmake to pkg_sys
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['cmake'] }}"
- name: Finalize cmake configuration
ansible.builtin.set_fact:
__configured: "{{ __configured | combine( { 'cmake': cmake_install_method } ) }}"